From e3c65a7a228a5808a7af48a47fdd77e982f95d00 Mon Sep 17 00:00:00 2001 From: Guido van Rossum Date: Fri, 30 Sep 2016 08:17:15 -0700 Subject: Misc asyncio improvements from upstream --- Lib/asyncio/tasks.py | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'Lib/asyncio/tasks.py') 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 -- cgit v1.2.1