diff options
| author | Eli Bendersky <eliben@gmail.com> | 2014-01-20 07:02:22 -0800 |
|---|---|---|
| committer | Eli Bendersky <eliben@gmail.com> | 2014-01-20 07:02:22 -0800 |
| commit | 029981bbfc58f53db01672846d8e31b345824652 (patch) | |
| tree | 49043017090e3529de7dc320838e5e20b65986ce /Doc/library/asyncio-task.rst | |
| parent | 2d26af82c1639d4aa709ed68f68673e7bd7e1bf4 (diff) | |
| download | cpython-git-029981bbfc58f53db01672846d8e31b345824652.tar.gz | |
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.rst | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/Doc/library/asyncio-task.rst b/Doc/library/asyncio-task.rst index e4abacd135..81372c52f7 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` |
