summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoel Rosdahl <joel@rosdahl.net>2020-05-04 21:56:00 (GMT)
committerGitHub <noreply@github.com>2020-05-04 21:56:00 (GMT)
commit9d74658f0a6e8a9b8d6dcf199dda886f35c6ad68 (patch)
treeb69d93af688986ed44ee7dc692bced91edfe1d4e
parentf25fb6ebfec894c01bc927c9aae7924ffc826d11 (diff)
downloadcpython-9d74658f0a6e8a9b8d6dcf199dda886f35c6ad68.zip
cpython-9d74658f0a6e8a9b8d6dcf199dda886f35c6ad68.tar.gz
cpython-9d74658f0a6e8a9b8d6dcf199dda886f35c6ad68.tar.bz2
bpo-40499: Mention that asyncio.wait() needs a non-empty aws set (GH-19900)
A similar formulation was added in bpo-21596 (db74d982d43d98040e38665d843cbc8de4a082b1) but was lost in bpo-33649 (3faaa8857a42a36383bb18425444e597fc876797).
-rw-r--r--Doc/library/asyncio-task.rst2
-rw-r--r--Misc/ACKS1
-rw-r--r--Misc/NEWS.d/next/Documentation/2020-05-04-14-20-02.bpo-40499.tjLSo8.rst1
3 files changed, 4 insertions, 0 deletions
diff --git a/Doc/library/asyncio-task.rst b/Doc/library/asyncio-task.rst
index d992b00..6627bec 100644
--- a/Doc/library/asyncio-task.rst
+++ b/Doc/library/asyncio-task.rst
@@ -498,6 +498,8 @@ Waiting Primitives
set concurrently and block until the condition specified
by *return_when*.
+ The *aws* set must not be empty.
+
Returns two sets of Tasks/Futures: ``(done, pending)``.
Usage::
diff --git a/Misc/ACKS b/Misc/ACKS
index 9221f6a..f744de6 100644
--- a/Misc/ACKS
+++ b/Misc/ACKS
@@ -1443,6 +1443,7 @@ Mike Romberg
Armin Ronacher
Case Roole
Timothy Roscoe
+Joel Rosdahl
Erik Rose
Mark Roseman
Josh Rosenberg
diff --git a/Misc/NEWS.d/next/Documentation/2020-05-04-14-20-02.bpo-40499.tjLSo8.rst b/Misc/NEWS.d/next/Documentation/2020-05-04-14-20-02.bpo-40499.tjLSo8.rst
new file mode 100644
index 0000000..2b7eccb
--- /dev/null
+++ b/Misc/NEWS.d/next/Documentation/2020-05-04-14-20-02.bpo-40499.tjLSo8.rst
@@ -0,0 +1 @@
+Mention that :func:`asyncio.wait` requires a non-empty set of awaitables.