Message389487
Regarding the initial message in this issue, and enabling recursive event loops, this has proved to be very useful when an event loop is already running and some non-async code needs to run async code. This situation is very frequent when e.g. a library is designed to be async-first, and also provides a blocking API which just wraps the async code by running it until complete.
The nest-asyncio library (https://github.com/erdewit/nest_asyncio) allows that by patching asyncio's event loop, but obviously this doesn't work with other event loops such as uvloop. I was wondering if things had changed since the original post of this issue, and if such a feature had any chance to make it into the standard library. |
|
Date |
User |
Action |
Args |
2021-03-24 19:42:12 | davidbrochart | set | recipients:
+ davidbrochart, jcea, djarb, zzzeek, njs, jab, pmpp, martin.panter, yselivanov, Rokas K. (rku), crusaderky |
2021-03-24 19:42:11 | davidbrochart | set | messageid: <1616614931.93.0.958305171354.issue22239@roundup.psfhosted.org> |
2021-03-24 19:42:11 | davidbrochart | link | issue22239 messages |
2021-03-24 19:42:11 | davidbrochart | create | |
|