mirror of https://github.com/python/cpython
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
|
@ -768,6 +768,9 @@ Task functions
|
|||
| | 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>`.
|
||||
|
||||
Usage::
|
||||
|
|
|
@ -0,0 +1 @@
|
|||
Document that `asyncio.wait()` does not cancel its futures on timeout.
|
Loading…
Reference in New Issue