Home
last modified time | relevance | path

Searched refs:delayfunc (Results 1 – 2 of 2) sorted by relevance

/third_party/python/Lib/
Dsched.py53 def __init__(self, timefunc=_time, delayfunc=time.sleep): argument
59 self.delayfunc = delayfunc
131 delayfunc = self.delayfunc
149 delayfunc(time - now)
152 delayfunc(0) # Let other threads run
/third_party/python/Doc/library/
Dsched.rst18 .. class:: scheduler(timefunc=time.monotonic, delayfunc=time.sleep)
23 units whatsoever). The *delayfunc* function should be callable with one
25 time units. *delayfunc* will also be called with the argument ``0`` after each
30 *timefunc* and *delayfunc* parameters are optional.
112 Run all scheduled events. This method will wait (using the :func:`delayfunc`
120 Either *action* or *delayfunc* can raise an exception. In either case, the