summaryrefslogtreecommitdiffstats
path: root/Doc/library/asyncio-extending.rst
diff options
context:
space:
mode:
authorAndrew Svetlov <andrew.svetlov@gmail.com>2022-04-01 01:25:15 (GMT)
committerGitHub <noreply@github.com>2022-04-01 01:25:15 (GMT)
commitd4bb38f82bf18b00db3129031ce4969b6f0caab9 (patch)
treeafdf80168076e324404d2ce492b5a222868b4d19 /Doc/library/asyncio-extending.rst
parentab89ccff3ca6efc2a8e6f5f45c30d568fb3d212f (diff)
downloadcpython-d4bb38f82bf18b00db3129031ce4969b6f0caab9.zip
cpython-d4bb38f82bf18b00db3129031ce4969b6f0caab9.tar.gz
cpython-d4bb38f82bf18b00db3129031ce4969b6f0caab9.tar.bz2
bpo-47167: Allow overriding a future compliance check in asyncio.Task (GH-32197)
Diffstat (limited to 'Doc/library/asyncio-extending.rst')
-rw-r--r--Doc/library/asyncio-extending.rst21
1 files changed, 16 insertions, 5 deletions
diff --git a/Doc/library/asyncio-extending.rst b/Doc/library/asyncio-extending.rst
index 619723e..215d215 100644
--- a/Doc/library/asyncio-extending.rst
+++ b/Doc/library/asyncio-extending.rst
@@ -48,16 +48,27 @@ For this purpose the following, *private* constructors are listed:
.. method:: Future.__init__(*, loop=None)
-Create a built-in future instance.
+ Create a built-in future instance.
-*loop* is an optional event loop instance.
+ *loop* is an optional event loop instance.
.. method:: Task.__init__(coro, *, loop=None, name=None, context=None)
-Create a built-in task instance.
+ Create a built-in task instance.
-*loop* is an optional event loop instance. The rest of arguments are described in
-:meth:`loop.create_task` description.
+ *loop* is an optional event loop instance. The rest of arguments are described in
+ :meth:`loop.create_task` description.
+
+ .. versionchanged:: 3.11
+
+ *context* argument is added.
+
+.. method:: Tasl._check_future(future)
+
+ Return ``True`` if *future* is attached to the same loop as the task, ``False``
+ otherwise.
+
+ .. versionadded:: 3.11
Task lifetime support