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:
Elvis Pranskevichus 2018-05-29 18:21:44 -04:00 committed by Yury Selivanov
parent e2b340ab41
commit f9aeca2085
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 accurs.
This function is a :ref:`coroutine <coroutine>`.
Usage::

View File

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