You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
hypercorn import package and run asgi in different event loop. make it hard to call asyncio.get_event_loop() to get event loop on module init, and use it in asgi application.
this will cause RuntimeError: Task <Task pending name='Task-2' coro=<Lifespan.handle_lifespan() running at ...\hypercorn\asyncio\lifespan.py:55>> got Future <_OverlappedFuture pending overlapped=<pending, 0x17c193fcf70>> attached to a different loop
The text was updated successfully, but these errors were encountered:
hypercorn import package and run asgi in different event loop. make it hard to call
asyncio.get_event_loop()
to get event loop on module init, and use it in asgi application.For example, this works fine with uvicorn:
this will cause
RuntimeError: Task <Task pending name='Task-2' coro=<Lifespan.handle_lifespan() running at ...\hypercorn\asyncio\lifespan.py:55>> got Future <_OverlappedFuture pending overlapped=<pending, 0x17c193fcf70>> attached to a different loop
The text was updated successfully, but these errors were encountered: