Title: BaseEventLoop.close should shutdown executor before marking itself closed
Type: behavior Stage:
Components: asyncio Versions: Python 3.5
Status: open Resolution:
Dependencies: Superseder:
Assigned To: Nosy List: cmeyer, gvanrossum, yselivanov
Priority: normal Keywords:

Created on 2016-10-17 21:54 by cmeyer, last changed 2016-10-17 21:54 by cmeyer.

Messages (1)
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.
Date User Action Args
2016-10-17 21:54:11cmeyercreate