]> granicus.if.org Git - python/commitdiff
bpo-23859: Document that asyncio.wait() does not cancel its futures (#7217)
authorElvis Pranskevichus <elvis@magic.io>
Tue, 29 May 2018 22:21:44 +0000 (18:21 -0400)
committerYury Selivanov <yury@magic.io>
Tue, 29 May 2018 22:21:44 +0000 (18:21 -0400)
Unlike `asyncio.wait_for()`, `asyncio.wait()` does not cancel the passed
futures when a timeout accurs.

Doc/library/asyncio-task.rst
Misc/NEWS.d/next/Documentation/2018-05-29-16-02-31.bpo-23859.E5gba1.rst [new file with mode: 0644]

index 3121b4718332bc7f0f949ecd6fe4cbd401ed280e..ba2cc12a8a754b65f332f8d17493185aae39127b 100644 (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::
diff --git a/Misc/NEWS.d/next/Documentation/2018-05-29-16-02-31.bpo-23859.E5gba1.rst b/Misc/NEWS.d/next/Documentation/2018-05-29-16-02-31.bpo-23859.E5gba1.rst
new file mode 100644 (file)
index 0000000..b372faa
--- /dev/null
@@ -0,0 +1 @@
+Document that `asyncio.wait()` does not cancel its futures on timeout.