diff options
author | Guido van Rossum <guido@python.org> | 2016-09-30 08:17:15 -0700 |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 2016-09-30 08:17:15 -0700 |
commit | e3c65a7a228a5808a7af48a47fdd77e982f95d00 (patch) | |
tree | 4cc2fd3d36c79999764bb7c9a2de133fb1f5d034 /Lib/asyncio/tasks.py | |
parent | 07cfd504e43c5078b8d106395c45b0a3f6c22fa3 (diff) | |
download | cpython-e3c65a7a228a5808a7af48a47fdd77e982f95d00.tar.gz cpython-e3c65a7a228a5808a7af48a47fdd77e982f95d00.zip |
Misc asyncio improvements from upstream
Diffstat (limited to 'Lib/asyncio/tasks.py')
-rw-r--r-- | Lib/asyncio/tasks.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Lib/asyncio/tasks.py b/Lib/asyncio/tasks.py index 4c66546428b..f735b44dc01 100644 --- a/Lib/asyncio/tasks.py +++ b/Lib/asyncio/tasks.py @@ -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 |