Issue 28464: BaseEventLoop.close should shutdown executor before marking itself closed (original) (raw)

Issue28464

Created on 2016-10-17 21:54 by cmeyer, last changed 2022-04-11 14:58 by admin. This issue is now closed.

Messages (2)
msg278829 - (view) Author: Chris Meyer (cmeyer) * Date: 2016-10-17 21:54
BaseEventLoop.close shuts down the executor associated with the event loop. It should do that BEFORE it sets self._closed = True, otherwise any pending executor futures will attempt to 'call_soon' on the event loop when they finish, resulting in a confusing error message that the event loop is already closed.
msg415002 - (view) Author: Andrew Svetlov (asvetlov) * (Python committer) Date: 2022-03-12 17:05
loop.shutdown_default_executor() exists for it, asyncio.run() calls the method
History
Date User Action Args
2022-04-11 14:58:38 admin set github: 72650
2022-03-12 17:05:57 asvetlov set status: open -> closednosy: + asvetlovmessages: + resolution: out of datestage: resolved
2016-10-17 21:54:11 cmeyer create