mirror of
https://github.com/python/cpython.git
synced 2025-09-15 13:16:12 +00:00
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.
This commit is contained in:
parent
e2b340ab41
commit
f9aeca2085
2 changed files with 4 additions and 0 deletions
|
@ -768,6 +768,9 @@ Task functions
|
||||||
| | futures finish or are cancelled. |
|
| | futures finish or are cancelled. |
|
||||||
+-----------------------------+----------------------------------------+
|
+-----------------------------+----------------------------------------+
|
||||||
|
|
||||||
|
Unlike :func:`~asyncio.wait_for`, ``wait()`` will not cancel the futures
|
||||||
|
when a timeout accurs.
|
||||||
|
|
||||||
This function is a :ref:`coroutine <coroutine>`.
|
This function is a :ref:`coroutine <coroutine>`.
|
||||||
|
|
||||||
Usage::
|
Usage::
|
||||||
|
|
|
@ -0,0 +1 @@
|
||||||
|
Document that `asyncio.wait()` does not cancel its futures on timeout.
|
Loading…
Add table
Add a link
Reference in a new issue