Skip to content

Commit

Permalink
Improve the formatting a bit
Browse files Browse the repository at this point in the history
  • Loading branch information
jstasiak committed Mar 8, 2025
1 parent 63c57c8 commit 0b21152
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Doc/library/concurrent.futures.rst
Original file line number Diff line number Diff line change
Expand Up @@ -95,9 +95,9 @@ Executor Objects
returning. The remaining futures are cancelled.

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``)::
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``)::

import shutil
with ThreadPoolExecutor(max_workers=4) as e:
Expand Down

0 comments on commit 0b21152

Please sign in to comment.