This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author asvetlov
Recipients asvetlov, xloem, yselivanov
Date 2022-03-17.17:17:37
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1647537457.5.0.653125453401.issue42838@roundup.psfhosted.org>
In-reply-to
Content
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.
History
Date User Action Args
2022-03-17 17:17:37asvetlovsetrecipients: + asvetlov, yselivanov, xloem
2022-03-17 17:17:37asvetlovsetmessageid: <1647537457.5.0.653125453401.issue42838@roundup.psfhosted.org>
2022-03-17 17:17:37asvetlovlinkissue42838 messages
2022-03-17 17:17:37asvetlovcreate