Initialize a new instance, passing the time and delay functions
(self, timefunc=_time, delayfunc=time.sleep)
| 51 | class 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. |