Message415527
Sometimes asyncio.run() is not enough.
For example, unittest test case needs to call several async functions (setup, test, teardown) from the synchronous code using the same execution context and event loop.
The proposal provides the following:
with Runner() as runner:
runner.run(async_func()) |
|
Date |
User |
Action |
Args |
2022-03-18 20:44:42 | asvetlov | set | recipients:
+ asvetlov, yselivanov |
2022-03-18 20:44:42 | asvetlov | set | messageid: <1647636282.37.0.43859483152.issue47062@roundup.psfhosted.org> |
2022-03-18 20:44:42 | asvetlov | link | issue47062 messages |
2022-03-18 20:44:42 | asvetlov | create | |
|