Closed luwqz1 closed 2 months ago
After the program exits warning messages appear: coroutine 'coro_name' was never awaited. The reason for this bug is the function 'to_coroutine_task'.
from telegrinder import LoopWrapper async def create_tables() -> None: ... lw = LoopWrapper() lw.lifespan.on_startup(create_tables()) lw.run_event_loop()
RuntimeWarning: coroutine 'create_tables' was never awaited
.
✏️ Description ✏️
🪄 Code example 🪄
📝 Logs 📝
.