diff options
author | Ćukasz Langa <lukasz@langa.pl> | 2019-06-04 11:03:20 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-06-04 11:03:20 (GMT) |
commit | 7f9a2ae78051877f4d966119e2fcd27ec77eda1d (patch) | |
tree | 47e66e32ff78edd1a14b42fabd04804efe9c8690 /Lib/asyncio/base_events.py | |
parent | 8f4bbb5d627e07a5508099e84796cecaeb9e32ab (diff) | |
download | cpython-7f9a2ae78051877f4d966119e2fcd27ec77eda1d.zip cpython-7f9a2ae78051877f4d966119e2fcd27ec77eda1d.tar.gz cpython-7f9a2ae78051877f4d966119e2fcd27ec77eda1d.tar.bz2 |
Revert "bpo-34037, asyncio: add BaseEventLoop.wait_executor_on_close (GH-13786)" (#13802)
This reverts commit 0f0a30f4da4b529e0f7df857b9f575b231b32758.
Diffstat (limited to 'Lib/asyncio/base_events.py')
-rw-r--r-- | Lib/asyncio/base_events.py | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/Lib/asyncio/base_events.py b/Lib/asyncio/base_events.py index b1a7f88..e002539 100644 --- a/Lib/asyncio/base_events.py +++ b/Lib/asyncio/base_events.py @@ -380,8 +380,6 @@ class Server(events.AbstractServer): class BaseEventLoop(events.AbstractEventLoop): def __init__(self): - # If true, close() waits for the default executor to finish - self.wait_executor_on_close = True self._timer_cancelled_count = 0 self._closed = False self._stopping = False @@ -637,7 +635,7 @@ class BaseEventLoop(events.AbstractEventLoop): executor = self._default_executor if executor is not None: self._default_executor = None - executor.shutdown(wait=self.wait_executor_on_close) + executor.shutdown(wait=False) def is_closed(self): """Returns True if the event loop was closed.""" |