erdewit/nest_asyncio

nest_asyncio.apply() to check for asyncio.AbstractEventLoop

sylim2357 opened this issue · 1 comments

if not isinstance(loop, asyncio.BaseEventLoop):

Suggesting to use asyncio.AbstractEventLoop instead of asyncio.BaseEventLoop

  • can support wider range of loops incl. uvloop

The patching relies on some implementation details that are specific to the asyncio BaseEventLoop. It will unfortunately not work with uvloop or other non-asyncio loops (that I know of).