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 error message that the event loop is already 

components: asyncio
messages: 278829
nosy: cmeyer, gvanrossum, yselivanov
priority: normal
severity: normal
status: open
title: BaseEventLoop.close should shutdown executor before marking itself closed
type: behavior
versions: Python 3.5

Python tracker <>
Python-bugs-list mailing list

Reply via email to