uvloop icon indicating copy to clipboard operation
uvloop copied to clipboard

Support nest-asyncio

Open davidbrochart opened this issue 4 years ago • 11 comments

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?

davidbrochart avatar Mar 16 '21 08:03 davidbrochart

yes please this is badly needed as libraries that use nest-asyncio cannot be uvloop installed?

markmark1 avatar Jul 26 '21 05:07 markmark1

bump, is there any update on this? or any other get around for nested asyncio handling with uvloop?

LinuxTerminali avatar Sep 13 '21 13:09 LinuxTerminali

This feature will be really good to have.

deepankarm avatar Oct 26 '21 11:10 deepankarm

This would be great!

JoanFM avatar Oct 26 '21 11:10 JoanFM

up

deedy5 avatar Jan 30 '24 17:01 deedy5

FYI: I had tried my hand at this previously: https://github.com/theY4Kman/uvloop/tree/feat/add-nest-asyncio-support

theY4Kman avatar Mar 13 '24 20:03 theY4Kman

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.

mavwolverine avatar May 11 '24 03:05 mavwolverine