sched
sched — Event scheduler
Source code: Lib/sched.py
The sched
module defines a class which implements a general purpose event scheduler:
-
class sched.scheduler(timefunc, delayfunc)
-
The
scheduler
class defines a generic interface to scheduling events. It needs two functions to actually deal with the “outside world” — timefunc should be callable without arguments, and return a number (the “time”, in any units whatsoever). The delayfunc function should be callable with one argume