summaryrefslogtreecommitdiffstats
path: root/Doc/library/asyncio-task.rst
diff options
context:
space:
mode:
authorEli Bendersky <eliben@gmail.com>2014-01-20 15:02:22 (GMT)
committerEli Bendersky <eliben@gmail.com>2014-01-20 15:02:22 (GMT)
commit029981bbfc58f53db01672846d8e31b345824652 (patch)
tree49043017090e3529de7dc320838e5e20b65986ce /Doc/library/asyncio-task.rst
parent2d26af82c1639d4aa709ed68f68673e7bd7e1bf4 (diff)
downloadcpython-029981bbfc58f53db01672846d8e31b345824652.zip
cpython-029981bbfc58f53db01672846d8e31b345824652.tar.gz
cpython-029981bbfc58f53db01672846d8e31b345824652.tar.bz2
Clarify what the loop arguments means for functions listed in 18.5.2.5
Diffstat (limited to 'Doc/library/asyncio-task.rst')
-rw-r--r--Doc/library/asyncio-task.rst6
1 files changed, 6 insertions, 0 deletions
diff --git a/Doc/library/asyncio-task.rst b/Doc/library/asyncio-task.rst
index e4abacd..81372c5 100644
--- a/Doc/library/asyncio-task.rst
+++ b/Doc/library/asyncio-task.rst
@@ -374,6 +374,12 @@ loop stops when all tasks are done.
Task functions
--------------
+.. note::
+
+ In the functions below, the optional *loop* argument allows to explicitly set
+ the event loop object used by the underlying task or coroutine. If it's
+ not provided, the default event loop is used.
+
.. function:: as_completed(fs, \*, loop=None, timeout=None)
Return an iterator whose values, when waited for, are :class:`Future`