Skip to content

Commit dbc08ae

Browse files
authored
Fix doc for loop.shutdown_default_executor()
After applying the suggestion from @1st1, this adjusts the surrounding wording and flow of the paragraph.
1 parent 7fe0fb1 commit dbc08ae

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Doc/library/asyncio-eventloop.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -169,10 +169,10 @@ Running and stopping the loop
169169

170170
.. coroutinemethod:: loop.shutdown_default_executor()
171171

172-
Schedule the closure of the default executor and wait for it to join all threads
173-
:class:`ThreadPoolExecutor` to finish joining all of the threads. After
174-
calling this method, a :exc:`RuntimeError` will be raised if
175-
:meth:`loop.run_in_executor` is called while using the default executor.
172+
Schedule the closure of the default executor and wait for it to join all of
173+
the threads in the :class:`ThreadPoolExecutor`. After calling this method, a
174+
:exc:`RuntimeError` will be raised if :meth:`loop.run_in_executor` is called
175+
while using the default executor.
176176

177177
Note that there is no need to call this function when
178178
:func:`asyncio.run` is used.

0 commit comments

Comments
 (0)