@@ -275,7 +275,8 @@ to a :class:`ProcessPoolExecutor` will result in deadlock.
275
275
276
276
.. versionchanged :: 3.3
277
277
When one of the worker processes terminates abruptly, a
278
- :exc: `BrokenProcessPool ` error is now raised. Previously, behaviour
278
+ :exc: `~concurrent.futures.process.BrokenProcessPool ` error is now raised.
279
+ Previously, behaviour
279
280
was undefined but operations on the executor or its futures would often
280
281
freeze or deadlock.
281
282
@@ -493,23 +494,22 @@ Module Functions
493
494
*return_when * indicates when this function should return. It must be one of
494
495
the following constants:
495
496
496
- .. tabularcolumns :: |l|L|
497
-
498
- +-----------------------------+----------------------------------------+
499
- | Constant | Description |
500
- +=============================+========================================+
501
- | :const: `FIRST_COMPLETED ` | The function will return when any |
502
- | | future finishes or is cancelled. |
503
- +-----------------------------+----------------------------------------+
504
- | :const: `FIRST_EXCEPTION ` | The function will return when any |
505
- | | future finishes by raising an |
506
- | | exception. If no future raises an |
507
- | | exception then it is equivalent to |
508
- | | :const: `ALL_COMPLETED `. |
509
- +-----------------------------+----------------------------------------+
510
- | :const: `ALL_COMPLETED ` | The function will return when all |
511
- | | futures finish or are cancelled. |
512
- +-----------------------------+----------------------------------------+
497
+ .. list-table ::
498
+ :header-rows: 1
499
+
500
+ * - Constant
501
+ - Description
502
+
503
+ * - .. data:: FIRST_COMPLETED
504
+ - The function will return when any future finishes or is cancelled.
505
+
506
+ * - .. data:: FIRST_EXCEPTION
507
+ - The function will return when any future finishes by raising an
508
+ exception. If no future raises an exception
509
+ then it is equivalent to :const: `ALL_COMPLETED `.
510
+
511
+ * - .. data:: ALL_COMPLETED
512
+ - The function will return when all futures finish or are cancelled.
513
513
514
514
.. function :: as_completed(fs, timeout=None)
515
515
@@ -570,7 +570,8 @@ Exception classes
570
570
.. exception :: BrokenThreadPool
571
571
572
572
Derived from :exc: `~concurrent.futures.BrokenExecutor `, this exception
573
- class is raised when one of the workers of a :class: `ThreadPoolExecutor `
573
+ class is raised when one of the workers
574
+ of a :class: `~concurrent.futures.ThreadPoolExecutor `
574
575
has failed initializing.
575
576
576
577
.. versionadded :: 3.7
@@ -581,7 +582,8 @@ Exception classes
581
582
582
583
Derived from :exc: `~concurrent.futures.BrokenExecutor ` (formerly
583
584
:exc: `RuntimeError `), this exception class is raised when one of the
584
- workers of a :class: `ProcessPoolExecutor ` has terminated in a non-clean
585
+ workers of a :class: `~concurrent.futures.ProcessPoolExecutor `
586
+ has terminated in a non-clean
585
587
fashion (for example, if it was killed from the outside).
586
588
587
589
.. versionadded :: 3.3
0 commit comments