| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -828,23 +828,22 @@ Waiting Primitives | |||
| 828 | 828 | *return_when* indicates when this function should return. It must | |
| 829 | 829 | be one of the following constants: | |
| 830 | 830 | ||
| 831 | - .. tabularcolumns:: |l|L| | ||
| 832 | - | ||
| 833 | - +-----------------------------+----------------------------------------+ | ||
| 834 | - | Constant | Description | | ||
| 835 | - +=============================+========================================+ | ||
| 836 | - | :const:`FIRST_COMPLETED` | The function will return when any | | ||
| 837 | - | | future finishes or is cancelled. | | ||
| 838 | - +-----------------------------+----------------------------------------+ | ||
| 839 | - | :const:`FIRST_EXCEPTION` | The function will return when any | | ||
| 840 | - | | future finishes by raising an | | ||
| 841 | - | | exception. If no future raises an | | ||
| 842 | - | | exception then it is equivalent to | | ||
| 843 | - | | :const:`ALL_COMPLETED`. | | ||
| 844 | - +-----------------------------+----------------------------------------+ | ||
| 845 | - | :const:`ALL_COMPLETED` | The function will return when all | | ||
| 846 | - | | futures finish or are cancelled. | | ||
| 847 | - +-----------------------------+----------------------------------------+ | ||
| 831 | + .. list-table:: | ||
| 832 | + :header-rows: 1 | ||
| 833 | + | ||
| 834 | + * - Constant | ||
| 835 | + - Description | ||
| 836 | + | ||
| 837 | + * - .. data:: FIRST_COMPLETED | ||
| 838 | + - The function will return when any future finishes or is cancelled. | ||
| 839 | + | ||
| 840 | + * - .. data:: FIRST_EXCEPTION | ||
| 841 | + - The function will return when any future finishes by raising an | ||
| 842 | + exception. If no future raises an exception | ||
| 843 | + then it is equivalent to :const:`ALL_COMPLETED`. | ||
| 844 | + | ||
| 845 | + * - .. data:: ALL_COMPLETED | ||
| 846 | + - The function will return when all futures finish or are cancelled. | ||
| 848 | 847 | ||
| 849 | 848 | Unlike :func:`~asyncio.wait_for`, ``wait()`` does not cancel the | |
| 850 | 849 | futures when a timeout occurs. | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -27,7 +27,6 @@ Doc/library/ast.rst | |||
| 27 | 27 | Doc/library/asyncio-extending.rst | |
| 28 | 28 | Doc/library/asyncio-policy.rst | |
| 29 | 29 | Doc/library/asyncio-subprocess.rst | |
| 30 | - Doc/library/asyncio-task.rst | ||
| 31 | 30 | Doc/library/bdb.rst | |
| 32 | 31 | Doc/library/collections.rst | |
| 33 | 32 | Doc/library/concurrent.futures.rst | |
| Back | FazBrowse Home | New Git URL |
0 commit comments