diff options
author | Victor Stinner <victor.stinner@gmail.com> | 2014-06-10 11:16:18 +0200 |
---|---|---|
committer | Victor Stinner <victor.stinner@gmail.com> | 2014-06-10 11:16:18 +0200 |
commit | 791e5531c992323dd0605d9ccd3092876db89073 (patch) | |
tree | 8257dd37e61b0b85c275a32e24d2b8769aaa0578 /Lib/asyncio/tasks.py | |
parent | f10642e8a9f4a1ac14aa17da8f1ddb8b7646c025 (diff) | |
parent | db74d982d43d98040e38665d843cbc8de4a082b1 (diff) | |
download | cpython-git-791e5531c992323dd0605d9ccd3092876db89073.tar.gz |
(Merge 3.4) Issue #21596: asyncio.wait(): mention that the sequence of futures
must not be empty.
Diffstat (limited to 'Lib/asyncio/tasks.py')
-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 2aa568bc6d..8b8fb82ed2 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). |