redditwarp.util.shdlr
#
A general purpose event scheduler.
This is just a reimplementation of the sched
module from the standard library,
but the names of the methods are different.
- class redditwarp.util.shdlr.Entry(when: float, callback: Callable[[], None])[source]#
Bases:
object
- when: float#
- callback: Callable[[], None]#
- scheduled: bool#
- cancelled: bool#
- class redditwarp.util.shdlr.Scheduler(*, time_func: ~typing.Callable[[], float] = <built-in function monotonic>, delay_func: ~typing.Callable[[float], None] = <built-in function sleep>)[source]#
Bases:
Sized
- time_func: Callable[[], float]#
- delay_func: Callable[[float], None]#