MCPcopy Create free account
hub / github.com/RT-Thread/env-windows / cancel

Method cancel

tools/python-3.11.9-amd64/Lib/threading.py:1394–1396  ·  view source on GitHub ↗

Stop the timer if it hasn't finished yet.

(self)

Source from the content-addressed store, hash-verified

1392 self.finished = Event()
1393
1394 def cancel(self):
1395 """Stop the timer if it hasn't finished yet."""
1396 self.finished.set()
1397
1398 def run(self):
1399 self.finished.wait(self.interval)

Callers

nothing calls this directly

Calls 1

setMethod · 0.45

Tested by

no test coverage detected