Skip to content

Commit f952694

Browse files
miss-islington1st1
authored andcommitted
[3.7] bpo-23859: Document that asyncio.wait() does not cancel its futures (GH-7217) (#7227)
* bpo-23859: Document that asyncio.wait() does not cancel its futures (GH-7217) Unlike `asyncio.wait_for()`, `asyncio.wait()` does not cancel the passed futures when a timeout accurs. (cherry picked from commit f9aeca2) Co-authored-by: Elvis Pranskevichus <[email protected]> * Update asyncio-task.rst
1 parent af9cda9 commit f952694

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

Doc/library/asyncio-task.rst

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -768,6 +768,9 @@ Task functions
768768
| | futures finish or are cancelled. |
769769
+-----------------------------+----------------------------------------+
770770

771+
Unlike :func:`~asyncio.wait_for`, ``wait()`` will not cancel the futures
772+
when a timeout occurs.
773+
771774
This function is a :ref:`coroutine <coroutine>`.
772775

773776
Usage::
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Document that `asyncio.wait()` does not cancel its futures on timeout.

0 commit comments

Comments
 (0)