Skip to content

Commit 5016e76

Browse files
JustinTArthurgvanrossum
authored andcommitted
Document that coroutines passed to gather will not necessarily be scheduled in the same order they were passed in. (python#433)
1 parent 9b68bfb commit 5016e76

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

asyncio/tasks.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -594,6 +594,10 @@ def gather(*coros_or_futures, loop=None, return_exceptions=False):
594594
"""Return a future aggregating results from the given coroutines
595595
or futures.
596596
597+
Coroutines will be wrapped in a future and scheduled in the event
598+
loop. They will not necessarily be scheduled in the same order as
599+
passed in.
600+
597601
All futures must share the same event loop. If all the tasks are
598602
done successfully, the returned future's result is the list of
599603
results (in the order of the original sequence, not necessarily

0 commit comments

Comments
 (0)