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

Method __init__

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

Source from the content-addressed store, hash-verified

1361 """
1362
1363 def __init__(self, interval, function, args=None, kwargs=None):
1364 Thread.__init__(self)
1365 self.interval = interval
1366 self.function = function
1367 self.args = args if args is not None else []
1368 self.kwargs = kwargs if kwargs is not None else {}
1369 self.finished = Event()
1370
1371 def cancel(self):
1372 """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