Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
791e5531
Commit
791e5531
authored
Jun 10, 2014
by
Victor Stinner
Browse files
Options
Browse Files
Download
Plain Diff
(Merge 3.4) Issue #21596: asyncio.wait(): mention that the sequence of futures
must not be empty.
parents
f10642e8
db74d982
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
0 deletions
+4
-0
Doc/library/asyncio-task.rst
Doc/library/asyncio-task.rst
+2
-0
Lib/asyncio/tasks.py
Lib/asyncio/tasks.py
+2
-0
No files found.
Doc/library/asyncio-task.rst
View file @
791e5531
...
...
@@ -521,6 +521,8 @@ Task functions
to complete. Coroutines will be wrapped in Tasks. Returns two sets of
:class:`Future`: (done, pending).
The sequence *futures* must not be empty.
*timeout* can be used to control the maximum number of seconds to wait before
returning. *timeout* can be an int or float. If *timeout* is not specified
or ``None``, there is no limit to the wait time.
...
...
Lib/asyncio/tasks.py
View file @
791e5531
...
...
@@ -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).
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment