File tree Expand file tree Collapse file tree 3 files changed +3
-15
lines changed Expand file tree Collapse file tree 3 files changed +3
-15
lines changed Original file line number Diff line number Diff line change @@ -140,18 +140,12 @@ Running and stopping the loop
140
140
The loop must not be running when this function is called.
141
141
Any pending callbacks will be discarded.
142
142
143
- This method clears all queues and shuts down the default executor. By
144
- default, it waits for the default executor to finish. Set
145
- *loop.wait_executor_on_close * to ``False `` to not wait for the executor.
143
+ This method clears all queues and shuts down the executor, but does
144
+ not wait for the executor to finish.
146
145
147
146
This method is idempotent and irreversible. No other methods
148
147
should be called after the event loop is closed.
149
148
150
- .. versionchanged :: 3.8
151
- The method now waits for the default executor to finish by default.
152
- Added *loop.wait_executor_on_close * attribute.
153
-
154
-
155
149
.. coroutinemethod :: loop.shutdown_asyncgens()
156
150
157
151
Schedule all currently open :term: `asynchronous generator ` objects to
Original file line number Diff line number Diff line change @@ -380,8 +380,6 @@ async def wait_closed(self):
380
380
class BaseEventLoop (events .AbstractEventLoop ):
381
381
382
382
def __init__ (self ):
383
- # If true, close() waits for the default executor to finish
384
- self .wait_executor_on_close = True
385
383
self ._timer_cancelled_count = 0
386
384
self ._closed = False
387
385
self ._stopping = False
@@ -637,7 +635,7 @@ def close(self):
637
635
executor = self ._default_executor
638
636
if executor is not None :
639
637
self ._default_executor = None
640
- executor .shutdown (wait = self . wait_executor_on_close )
638
+ executor .shutdown (wait = False )
641
639
642
640
def is_closed (self ):
643
641
"""Returns True if the event loop was closed."""
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments