@@ -271,7 +271,8 @@ to a :class:`ProcessPoolExecutor` will result in deadlock.
271
271
272
272
.. versionchanged :: 3.3
273
273
When one of the worker processes terminates abruptly, a
274
- :exc: `BrokenProcessPool ` error is now raised. Previously, behaviour
274
+ :exc: `~concurrent.futures.process.BrokenProcessPool ` error is now raised.
275
+ Previously, behaviour
275
276
was undefined but operations on the executor or its futures would often
276
277
freeze or deadlock.
277
278
@@ -485,23 +486,22 @@ Module Functions
485
486
*return_when * indicates when this function should return. It must be one of
486
487
the following constants:
487
488
488
- .. tabularcolumns :: |l|L|
489
-
490
- +-----------------------------+----------------------------------------+
491
- | Constant | Description |
492
- +=============================+========================================+
493
- | :const: `FIRST_COMPLETED ` | The function will return when any |
494
- | | future finishes or is cancelled. |
495
- +-----------------------------+----------------------------------------+
496
- | :const: `FIRST_EXCEPTION ` | The function will return when any |
497
- | | future finishes by raising an |
498
- | | exception. If no future raises an |
499
- | | exception then it is equivalent to |
500
- | | :const: `ALL_COMPLETED `. |
501
- +-----------------------------+----------------------------------------+
502
- | :const: `ALL_COMPLETED ` | The function will return when all |
503
- | | futures finish or are cancelled. |
504
- +-----------------------------+----------------------------------------+
489
+ .. list-table ::
490
+ :header-rows: 1
491
+
492
+ * - Constant
493
+ - Description
494
+
495
+ * - .. data:: FIRST_COMPLETED
496
+ - The function will return when any future finishes or is cancelled.
497
+
498
+ * - .. data:: FIRST_EXCEPTION
499
+ - The function will return when any future finishes by raising an
500
+ exception. If no future raises an exception
501
+ then it is equivalent to :const: `ALL_COMPLETED `.
502
+
503
+ * - .. data:: ALL_COMPLETED
504
+ - The function will return when all futures finish or are cancelled.
505
505
506
506
.. function :: as_completed(fs, timeout=None)
507
507
@@ -562,7 +562,8 @@ Exception classes
562
562
.. exception :: BrokenThreadPool
563
563
564
564
Derived from :exc: `~concurrent.futures.BrokenExecutor `, this exception
565
- class is raised when one of the workers of a :class: `ThreadPoolExecutor `
565
+ class is raised when one of the workers
566
+ of a :class: `~concurrent.futures.ThreadPoolExecutor `
566
567
has failed initializing.
567
568
568
569
.. versionadded :: 3.7
@@ -573,7 +574,8 @@ Exception classes
573
574
574
575
Derived from :exc: `~concurrent.futures.BrokenExecutor ` (formerly
575
576
:exc: `RuntimeError `), this exception class is raised when one of the
576
- workers of a :class: `ProcessPoolExecutor ` has terminated in a non-clean
577
+ workers of a :class: `~concurrent.futures.ProcessPoolExecutor `
578
+ has terminated in a non-clean
577
579
fashion (for example, if it was killed from the outside).
578
580
579
581
.. versionadded :: 3.3
0 commit comments