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

Method cancel

Lib/threading.py:1371–1373  ·  view source on GitHub ↗

Stop the timer if it hasn't finished yet.

(self)

Source from the content-addressed store, hash-verified

1369 self.finished = Event()
1370
1371 def cancel(self):
1372 """Stop the timer if it hasn't finished yet."""
1373 self.finished.set()
1374
1375 def run(self):
1376 self.finished.wait(self.interval)

Callers 1

killAnimationsOfMethod · 0.45

Calls 1

setMethod · 0.45

Tested by

no test coverage detected