aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/Lib/asyncio/tasks.py
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>2016-09-30 08:17:15 -0700
committerGuido van Rossum <guido@python.org>2016-09-30 08:17:15 -0700
commite3c65a7a228a5808a7af48a47fdd77e982f95d00 (patch)
tree4cc2fd3d36c79999764bb7c9a2de133fb1f5d034 /Lib/asyncio/tasks.py
parent07cfd504e43c5078b8d106395c45b0a3f6c22fa3 (diff)
downloadcpython-e3c65a7a228a5808a7af48a47fdd77e982f95d00.tar.gz
cpython-e3c65a7a228a5808a7af48a47fdd77e982f95d00.zip
Misc asyncio improvements from upstream
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 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