@@ -775,23 +775,22 @@ Waiting Primitives
775
775
*return_when * indicates when this function should return. It must
776
776
be one of the following constants:
777
777
778
- .. tabularcolumns :: |l|L|
779
-
780
- +-----------------------------+----------------------------------------+
781
- | Constant | Description |
782
- +=============================+========================================+
783
- | :const: `FIRST_COMPLETED ` | The function will return when any |
784
- | | future finishes or is cancelled. |
785
- +-----------------------------+----------------------------------------+
786
- | :const: `FIRST_EXCEPTION ` | The function will return when any |
787
- | | future finishes by raising an |
788
- | | exception. If no future raises an |
789
- | | exception then it is equivalent to |
790
- | | :const: `ALL_COMPLETED `. |
791
- +-----------------------------+----------------------------------------+
792
- | :const: `ALL_COMPLETED ` | The function will return when all |
793
- | | futures finish or are cancelled. |
794
- +-----------------------------+----------------------------------------+
778
+ .. list-table ::
779
+ :header-rows: 1
780
+
781
+ * - Constant
782
+ - Description
783
+
784
+ * - .. data:: FIRST_COMPLETED
785
+ - The function will return when any future finishes or is cancelled.
786
+
787
+ * - .. data:: FIRST_EXCEPTION
788
+ - The function will return when any future finishes by raising an
789
+ exception. If no future raises an exception
790
+ then it is equivalent to :const: `ALL_COMPLETED `.
791
+
792
+ * - .. data:: ALL_COMPLETED
793
+ - The function will return when all futures finish or are cancelled.
795
794
796
795
Unlike :func: `~asyncio.wait_for `, ``wait() `` does not cancel the
797
796
futures when a timeout occurs.
0 commit comments