diff options
author | Yury Selivanov <yury@magic.io> | 2018-05-28 21:54:02 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-05-28 21:54:02 (GMT) |
commit | 416c1ebd9896b394790dcb4f9f035b1a44ebe9ff (patch) | |
tree | a5003eed8be41259a0e545fde1c2d22bf2ac23c7 /Doc | |
parent | fdccfe09f0b10776645fdb04a0783d6864c32b21 (diff) | |
download | cpython-416c1ebd9896b394790dcb4f9f035b1a44ebe9ff.zip cpython-416c1ebd9896b394790dcb4f9f035b1a44ebe9ff.tar.gz cpython-416c1ebd9896b394790dcb4f9f035b1a44ebe9ff.tar.bz2 |
bpo-32610: Fix asyncio.all_tasks() to return only pending tasks. (GH-7174)
Diffstat (limited to 'Doc')
-rw-r--r-- | Doc/library/asyncio-task.rst | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/Doc/library/asyncio-task.rst b/Doc/library/asyncio-task.rst index 4892333..233cc94 100644 --- a/Doc/library/asyncio-task.rst +++ b/Doc/library/asyncio-task.rst @@ -443,6 +443,8 @@ Task Return a set of all tasks for an event loop. By default all tasks for the current event loop are returned. + If *loop* is ``None``, :func:`get_event_loop` function + is used to get the current loop. .. classmethod:: current_task(loop=None) @@ -567,8 +569,9 @@ Task functions Return a set of :class:`Task` objects created for the loop. - If *loop* is ``None`` :func:`get_event_loop` is used for getting - current loop. + If *loop* is ``None``, :func:`get_running_loop` is used for getting + current loop (contrary to the deprecated :meth:`Task.all_tasks` method + that uses :func:`get_event_loop`.) .. versionadded:: 3.7 |