Message415432
asyncio.run() present since Python 3.7
After the main coroutine finish, it cancels all background tasks and waits for their termination.
Background tasks can use old good `try/finally` for resources cleanup.
An additional API is not required IMHO. |
|
Date |
User |
Action |
Args |
2022-03-17 17:17:37 | asvetlov | set | recipients:
+ asvetlov, yselivanov, xloem |
2022-03-17 17:17:37 | asvetlov | set | messageid: <1647537457.5.0.653125453401.issue42838@roundup.psfhosted.org> |
2022-03-17 17:17:37 | asvetlov | link | issue42838 messages |
2022-03-17 17:17:37 | asvetlov | create | |
|