@@ -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 |