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 xloem
Recipients asvetlov, xloem, yselivanov
Date 2021-01-06.13:56:08
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1609941368.33.0.950412728581.issue42838@roundup.psfhosted.org>
In-reply-to
Content
To handle destruction of resources especially during exceptions, it would be nice if there were some way to provide coroutines/tasks that run at the termination or closure of an event loop.  There are a lot of api options here.  Maybe a simple one would be to have close() call a run_until_closed() function that starts all of these and steps the loop to wait for them, before closing, and provide run_close() functions to queue them for delay.
History
Date User Action Args
2021-01-06 13:56:08xloemsetrecipients: + xloem, asvetlov, yselivanov
2021-01-06 13:56:08xloemsetmessageid: <1609941368.33.0.950412728581.issue42838@roundup.psfhosted.org>
2021-01-06 13:56:08xloemlinkissue42838 messages
2021-01-06 13:56:08xloemcreate