Skip to content

Commit f9aeca2

Browse files
elprans1st1
authored andcommitted
bpo-23859: Document that asyncio.wait() does not cancel its futures (#7217)
Unlike `asyncio.wait_for()`, `asyncio.wait()` does not cancel the passed futures when a timeout accurs.
1 parent e2b340a commit f9aeca2

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

Doc/library/asyncio-task.rst

+3
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 accurs.
773+
771774
This function is a :ref:`coroutine <coroutine>`.
772775

773776
Usage::
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)