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

Method __init__

Lib/sched.py:53–60  ·  view source on GitHub ↗

Initialize a new instance, passing the time and delay functions

(self, timefunc=_time, delayfunc=time.sleep)

Source from the content-addressed store, hash-verified

51class scheduler:
52
53 def __init__(self, timefunc=_time, delayfunc=time.sleep):
54 """Initialize a new instance, passing the time and delay
55 functions"""
56 self._queue = []
57 self._lock = threading.RLock()
58 self.timefunc = timefunc
59 self.delayfunc = delayfunc
60 self._sequence_generator = count()
61
62 def enterabs(self, time, priority, action, argument=(), kwargs=_sentinel):
63 """Enter a new event in the queue at an absolute time.

Callers

nothing calls this directly

Calls 2

countFunction · 0.85
RLockMethod · 0.80

Tested by

no test coverage detected