MCPcopy 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_timerMethod · 0.95
test_timer_reprMethod · 0.95
test_timer_repr_debugMethod · 0.95
test_timer_comparisonMethod · 0.95
test__run_onceMethod · 0.95

Calls 3

superClass · 0.85
cancelMethod · 0.45

Tested by 5

test_timerMethod · 0.76
test_timer_reprMethod · 0.76
test_timer_repr_debugMethod · 0.76
test_timer_comparisonMethod · 0.76
test__run_onceMethod · 0.76