[issue28464] BaseEventLoop.close should shutdown executor before marking itself closed

2022-03-12 Thread Andrew Svetlov
Andrew Svetlov added the comment: loop.shutdown_default_executor() exists for it, asyncio.run() calls the method -- nosy: +asvetlov resolution: -> out of date stage: -> resolved status: open -> closed ___ Python tracker

[issue28464] BaseEventLoop.close should shutdown executor before marking itself closed

2016-10-17 Thread Chris Meyer
New submission from Chris Meyer: 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