mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
Misc asyncio improvements from upstream
This commit is contained in:
parent
07cfd504e4
commit
e3c65a7a22
8 changed files with 164 additions and 42 deletions
|
@ -594,6 +594,10 @@ def gather(*coros_or_futures, loop=None, return_exceptions=False):
|
|||
"""Return a future aggregating results from the given coroutines
|
||||
or futures.
|
||||
|
||||
Coroutines will be wrapped in a future and scheduled in the event
|
||||
loop. They will not necessarily be scheduled in the same order as
|
||||
passed in.
|
||||
|
||||
All futures must share the same event loop. If all the tasks are
|
||||
done successfully, the returned future's result is the list of
|
||||
results (in the order of the original sequence, not necessarily
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue