summaryrefslogtreecommitdiff
path: root/Doc/library/asyncio-task.rst
diff options
context:
space:
mode:
Diffstat (limited to 'Doc/library/asyncio-task.rst')
-rw-r--r--Doc/library/asyncio-task.rst5
1 files changed, 4 insertions, 1 deletions
diff --git a/Doc/library/asyncio-task.rst b/Doc/library/asyncio-task.rst
index bc8a2722bc..2e963398d9 100644
--- a/Doc/library/asyncio-task.rst
+++ b/Doc/library/asyncio-task.rst
@@ -724,7 +724,7 @@ Task Object
.. deprecated-removed:: 3.8 3.10
The *loop* parameter.
- .. method:: cancel()
+ .. method:: cancel(msg=None)
Request the Task to be cancelled.
@@ -739,6 +739,9 @@ Task Object
suppressing cancellation completely is not common and is actively
discouraged.
+ .. versionchanged:: 3.9
+ Added the ``msg`` parameter.
+
.. _asyncio_example_task_cancel:
The following example illustrates how coroutines can intercept