MCPcopy Index your code
hub / github.com/python/cpython / cancel

Method cancel

Lib/test/test_asyncio/test_futures.py:63–67  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

61 __exception = None
62
63 def cancel(self):
64 if self.done():
65 return False
66 self.__cancelled = True
67 return True
68
69 def cancelled(self):
70 return self.__cancelled

Callers 15

sleep_n_crashMethod · 0.45
test_cancelMethod · 0.45
test_exception_cancelMethod · 0.45
handle_echoMethod · 0.45
test_isfutureMethod · 0.45
test_initial_stateMethod · 0.45
test_uninitializedMethod · 0.45

Calls 1

doneMethod · 0.95

Tested by

no test coverage detected