erdewit / nest_asyncio

Patch asyncio to allow nested event loops
BSD 2-Clause "Simplified" License
693 stars 79 forks source link

Can't patch loop of type <class 'uvloop.Loop'> #49

Closed BobCashStory closed 3 years ago

BobCashStory commented 3 years ago

I'm using sanic as server who use uvloop instead of asyncio.

nest_asyncio doesn't allow me to apply on uvloop asyncio.

Does it's planned on future release to support it ?

erdewit commented 3 years ago

uvloop is a C-extension and is not possible to patch.

xappppp commented 2 years ago

getting the same issue when i'm setting up the fastapi and trying to add IB to the app, not sure if this context can give any viable workaround