[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 f9aeca2085
)
Co-authored-by: Elvis Pranskevichus <elvis@magic.io>
* Update asyncio-task.rst
This commit is contained in:
parent
af9cda9845
commit
f95269404c
|
@ -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 occurs.
|
||||
|
||||
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