[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:
Miss Islington (bot) 2018-05-29 18:26:22 -07:00 committed by Yury Selivanov
parent af9cda9845
commit f95269404c
2 changed files with 4 additions and 0 deletions

View File

@ -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::

View File

@ -0,0 +1 @@
Document that `asyncio.wait()` does not cancel its futures on timeout.