summaryrefslogtreecommitdiff
path: root/Lib/asyncio/tasks.py
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>2016-09-30 08:18:34 -0700
committerGuido van Rossum <guido@python.org>2016-09-30 08:18:34 -0700
commit0035be3fee832ebccd8c86576b9c604ca321cefa (patch)
tree4622d6c8636aa54e1aee845cd9bdb394b54e537b /Lib/asyncio/tasks.py
parent61cd726d1abca5601f85d0029466ab9ec3216cc0 (diff)
parente3c65a7a228a5808a7af48a47fdd77e982f95d00 (diff)
downloadcpython-git-0035be3fee832ebccd8c86576b9c604ca321cefa.tar.gz
Misc asyncio improvements from upstream (merge 3.5->3.6)
Diffstat (limited to 'Lib/asyncio/tasks.py')
-rw-r--r--Lib/asyncio/tasks.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/Lib/asyncio/tasks.py b/Lib/asyncio/tasks.py
index 4c66546428..f735b44dc0 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