Class a.t.TimerBase:

Part of aculab.timer View Source View In Hierarchy

Known subclasses: aculab.timer.TimerThread

Timer base class - does the housekeeping.
Method __init__ Undocumented
Method add Add a timer after interval in seconds.
Method cancel Cancel a timer.
Method time_to_wait Return the time to wait for the next timer in ms or -1
Method get_pending Return a list of pending timers.
def __init__(self): (source)
Undocumented
def add(self, interval, function, args=, kwargs={}): (source)
Add a timer after interval in seconds.
Returnsthe tuple (timer, flag). flag is True if the timer added is the next timer due.
def cancel(self, timer): (source)
Cancel a timer. Cancelling an expired timer raises a ValueError.
ReturnsTrue if the cancelled timer is the next timer due.
def time_to_wait(self): (source)
Return the time to wait for the next timer in ms or -1 if no timer is present.
def get_pending(self): (source)
Return a list of pending timers.
API Documentation for pyAculab, generated by pydoctor at 2009-01-02 15:12:29.