From 029981bbfc58f53db01672846d8e31b345824652 Mon Sep 17 00:00:00 2001 From: Eli Bendersky Date: Mon, 20 Jan 2014 07:02:22 -0800 Subject: [PATCH] Clarify what the loop arguments means for functions listed in 18.5.2.5 --- Doc/library/asyncio-task.rst | 6 ++++++ 1 file changed, 6 insertions(+) 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` -- 2.49.0