Support nest-asyncio
nest-asyncio allows nested event loops, which seems like a very useful feature. Currently it only works with event loops from asyncio. Would it make sense to have uvloop patchable with nest-asyncio?
yes please this is badly needed as libraries that use nest-asyncio cannot be uvloop installed?
bump, is there any update on this? or any other get around for nested asyncio handling with uvloop?
This feature will be really good to have.
This would be great!
up
FYI: I had tried my hand at this previously: https://github.com/theY4Kman/uvloop/tree/feat/add-nest-asyncio-support
any traction on this?
consider this scenario:
In the fastapi project main.py, I have the app = FastAPI() I run it with uvicorn.run.
Now I have a third party library which only exposes async functions.
There is no way to await those functions since an event loop is already running before it imports main.py.