Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions Doc/library/asyncio-task.rst
Original file line number Diff line number Diff line change
Expand Up @@ -797,6 +797,11 @@ Waiting Primitives
| :const:`ALL_COMPLETED` | The function will return when all |
| | futures finish or are cancelled. |
+-----------------------------+----------------------------------------+

Using ``return_when=FIRST_COMPLETED`` or ``return_when=FIRST_EXCEPTION``
does *not* imply that the ``done`` set will contain only the first
finished future, as multiple futures may finish before the function
returns.

Unlike :func:`~asyncio.wait_for`, ``wait()`` does not cancel the
futures when a timeout occurs.
Expand Down