Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/python/cpython
/ cancel
Method
cancel
Lib/asyncio/events.py:190–193 ·
view source on GitHub ↗
(self)
Source
from the content-addressed store, hash-verified
188
return
NotImplemented
189
190
def
cancel(self):
191
if
not self._cancelled:
192
self._loop._timer_handle_cancelled(self)
193
super().cancel()
194
195
def
when(self):
196
""
"Return a scheduled callback time.
Callers
5
test_timer
Method · 0.95
test_timer_repr
Method · 0.95
test_timer_repr_debug
Method · 0.95
test_timer_comparison
Method · 0.95
test__run_once
Method · 0.95
Calls
3
super
Class · 0.85
_timer_handle_cancelled
Method · 0.45
cancel
Method · 0.45
Tested by
5
test_timer
Method · 0.76
test_timer_repr
Method · 0.76
test_timer_repr_debug
Method · 0.76
test_timer_comparison
Method · 0.76
test__run_once
Method · 0.76