@@ -271,7 +271,8 @@ to a :class:`ProcessPoolExecutor` will result in deadlock.
271271
272272 .. versionchanged :: 3.3
273273 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
275276 was undefined but operations on the executor or its futures would often
276277 freeze or deadlock.
277278
@@ -485,23 +486,22 @@ Module Functions
485486 *return_when * indicates when this function should return. It must be one of
486487 the following constants:
487488
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.
505505
506506.. function :: as_completed(fs, timeout=None)
507507
@@ -562,7 +562,8 @@ Exception classes
562562.. exception :: BrokenThreadPool
563563
564564 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 `
566567 has failed initializing.
567568
568569 .. versionadded :: 3.7
@@ -573,7 +574,8 @@ Exception classes
573574
574575 Derived from :exc: `~concurrent.futures.BrokenExecutor ` (formerly
575576 :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
577579 fashion (for example, if it was killed from the outside).
578580
579581 .. versionadded :: 3.3
0 commit comments