summaryrefslogtreecommitdiffstats
path: root/Doc
diff options
context:
space:
mode:
authorMarat Sharafutdinov <decaz89@gmail.com>2017-11-07 09:06:05 (GMT)
committerAndrew Svetlov <andrew.svetlov@gmail.com>2017-11-07 09:06:05 (GMT)
commit69cfed1cd7be968fa4f6c69eb6dccc94bce5d45c (patch)
treea00a949294321c72c6e3d6286452c290252d3340 /Doc
parent088929cf62fa22c06f6a44e25915abce9048a545 (diff)
downloadcpython-69cfed1cd7be968fa4f6c69eb6dccc94bce5d45c.zip
cpython-69cfed1cd7be968fa4f6c69eb6dccc94bce5d45c.tar.gz
cpython-69cfed1cd7be968fa4f6c69eb6dccc94bce5d45c.tar.bz2
Add asyncio.Handle.cancelled() method (#2388)
Diffstat (limited to 'Doc')
-rw-r--r--Doc/library/asyncio-eventloop.rst6
1 files changed, 6 insertions, 0 deletions
diff --git a/Doc/library/asyncio-eventloop.rst b/Doc/library/asyncio-eventloop.rst
index 9bc7a40..e635cba 100644
--- a/Doc/library/asyncio-eventloop.rst
+++ b/Doc/library/asyncio-eventloop.rst
@@ -867,6 +867,12 @@ Handle
Cancel the call. If the callback is already canceled or executed,
this method has no effect.
+ .. method:: cancelled()
+
+ Return ``True`` if the call was cancelled.
+
+ .. versionadded:: 3.7
+
Event loop examples
-------------------