Message389487
| Author |
davidbrochart |
| Recipients |
Rokas K. (rku), crusaderky, davidbrochart, djarb, jab, jcea, martin.panter, njs, pmpp, yselivanov, zzzeek |
| Date |
2021年03月24日.19:42:11 |
| SpamBayes Score |
-1.0 |
| Marked as misclassified |
Yes |
| Message-id |
<1616614931.93.0.958305171354.issue22239@roundup.psfhosted.org> |
| In-reply-to |
| Content |
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. |
|
History
|
|---|
| 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 |
|