Add asyncio.Handle.cancelled() method (#2388)

This commit is contained in:
Marat Sharafutdinov 2017-11-07 12:06:05 +03:00 committed by Andrew Svetlov
parent 088929cf62
commit 69cfed1cd7
4 changed files with 14 additions and 4 deletions

View file

@ -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
-------------------