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

Method __init__

tools/python-3.11.9-amd64/Lib/threading.py:1386–1392  ·  view source on GitHub ↗
(self, interval, function, args=None, kwargs=None)

Source from the content-addressed store, hash-verified

1384 """
1385
1386 def __init__(self, interval, function, args=None, kwargs=None):
1387 Thread.__init__(self)
1388 self.interval = interval
1389 self.function = function
1390 self.args = args if args is not None else []
1391 self.kwargs = kwargs if kwargs is not None else {}
1392 self.finished = Event()
1393
1394 def cancel(self):
1395 """Stop the timer if it hasn't finished yet."""

Callers

nothing calls this directly

Calls 2

EventClass · 0.70
__init__Method · 0.45

Tested by

no test coverage detected