mirror of
https://github.com/python/cpython.git
synced 2025-08-02 16:13:13 +00:00
Add asyncio.Handle.cancelled() method (#2388)
This commit is contained in:
parent
088929cf62
commit
69cfed1cd7
4 changed files with 14 additions and 4 deletions
|
@ -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
|
||||
-------------------
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue