mirror of
https://github.com/python/cpython.git
synced 2025-08-27 20:25:18 +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
|
@ -117,6 +117,9 @@ class Handle:
|
|||
self._callback = None
|
||||
self._args = None
|
||||
|
||||
def cancelled(self):
|
||||
return self._cancelled
|
||||
|
||||
def _run(self):
|
||||
try:
|
||||
self._callback(*self._args)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue