mirror of
https://github.com/python/cpython.git
synced 2025-08-30 13:38:43 +00:00
Issue #21596: asyncio.wait(): mention that the sequence of futures must not
be empty.
This commit is contained in:
parent
bb2fc5b2a5
commit
db74d982d4
2 changed files with 4 additions and 0 deletions
|
@ -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).
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue