MCPcopy Index your code
hub / github.com/RustPython/RustPython / __init__

Method __init__

Lib/threading.py:1370–1376  ·  view source on GitHub ↗
(self, interval, function, args=None, kwargs=None)

Source from the content-addressed store, hash-verified

1368 """
1369
1370 def __init__(self, interval, function, args=None, kwargs=None):
1371 Thread.__init__(self)
1372 self.interval = interval
1373 self.function = function
1374 self.args = args if args is not None else []
1375 self.kwargs = kwargs if kwargs is not None else {}
1376 self.finished = Event()
1377
1378 def cancel(self):
1379 """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