diff options
author | Victor Stinner <victor.stinner@gmail.com> | 2014-06-10 09:16:05 (GMT) |
---|---|---|
committer | Victor Stinner <victor.stinner@gmail.com> | 2014-06-10 09:16:05 (GMT) |
commit | db74d982d43d98040e38665d843cbc8de4a082b1 (patch) | |
tree | c9b35fa6e9afccf508c20af3b17aa271c90df158 /Lib | |
parent | bb2fc5b2a58993c80ee81f10fe463039520a4162 (diff) | |
download | cpython-db74d982d43d98040e38665d843cbc8de4a082b1.zip cpython-db74d982d43d98040e38665d843cbc8de4a082b1.tar.gz cpython-db74d982d43d98040e38665d843cbc8de4a082b1.tar.bz2 |
Issue #21596: asyncio.wait(): mention that the sequence of futures must not
be empty.
Diffstat (limited to 'Lib')
-rw-r--r-- | Lib/asyncio/tasks.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Lib/asyncio/tasks.py b/Lib/asyncio/tasks.py index 2aa568b..8b8fb82 100644 --- a/Lib/asyncio/tasks.py +++ b/Lib/asyncio/tasks.py @@ -387,6 +387,8 @@ ALL_COMPLETED = concurrent.futures.ALL_COMPLETED def wait(fs, *, loop=None, timeout=None, return_when=ALL_COMPLETED): """Wait for the Futures and coroutines given by fs to complete. + The sequence futures must not be empty. + Coroutines will be wrapped in Tasks. Returns two sets of Future: (done, pending). |