summaryrefslogtreecommitdiffstats
path: root/Doc
diff options
context:
space:
mode:
Diffstat (limited to 'Doc')
-rw-r--r--Doc/library/asyncio-task.rst25
-rw-r--r--Doc/whatsnew/3.9.rst5
2 files changed, 5 insertions, 25 deletions
diff --git a/Doc/library/asyncio-task.rst b/Doc/library/asyncio-task.rst
index 21824ca..bac99b7 100644
--- a/Doc/library/asyncio-task.rst
+++ b/Doc/library/asyncio-task.rst
@@ -962,31 +962,6 @@ Task Object
.. versionadded:: 3.8
- .. classmethod:: all_tasks(loop=None)
-
- 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``, the :func:`get_event_loop` function
- is used to get the current loop.
-
- .. deprecated-removed:: 3.7 3.9
-
- Do not call this as a task method. Use the :func:`asyncio.all_tasks`
- function instead.
-
- .. classmethod:: current_task(loop=None)
-
- Return the currently running task or ``None``.
-
- If *loop* is ``None``, the :func:`get_event_loop` function
- is used to get the current loop.
-
- .. deprecated-removed:: 3.7 3.9
-
- Do not call this as a task method. Use the
- :func:`asyncio.current_task` function instead.
-
.. _asyncio_generator_based_coro:
diff --git a/Doc/whatsnew/3.9.rst b/Doc/whatsnew/3.9.rst
index d18eca8..689be1d 100644
--- a/Doc/whatsnew/3.9.rst
+++ b/Doc/whatsnew/3.9.rst
@@ -883,6 +883,11 @@ Removed
deprecated since 2006, and only returning ``False`` when it's called.
(Contributed by Batuhan Taskaya in :issue:`40208`)
+* The :meth:`asyncio.Task.current_task` and :meth:`asyncio.Task.all_tasks` have
+ have been removed. They were deprecated since Python 3.7 and you can use
+ :func:`asyncio.current_task` and :func:`asyncio.all_tasks` instead.
+ (Contributed by RĂ©mi Lapeyre in :issue:`40967`)
+
Porting to Python 3.9
=====================