We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5131b8f commit 3118185Copy full SHA for 3118185
1 file changed
Doc/library/concurrent.futures.rst
@@ -92,10 +92,10 @@ Executor Objects
92
executor has started running will be completed prior to this method
93
returning. The remaining futures are cancelled.
94
95
- You can avoid having to call this method explicitly if you use the
96
- :keyword:`with` statement, which will shutdown the :class:`Executor`
97
- (waiting as if :meth:`Executor.shutdown` were called with *wait* set to
98
- ``True``)::
+ You can avoid having to call this method explicitly if you use the executor
+ as a :term:`context manager` via the :keyword:`with` statement, which
+ will shutdown the :class:`Executor` (waiting as if :meth:`Executor.shutdown`
+ were called with *wait* set to ``True``)::
99
100
import shutil
101
with ThreadPoolExecutor(max_workers=4) as e:
0 commit comments