Class a.t.TimerThread(threading.Thread, TimerBase):

Part of aculab.timer View Source View In Hierarchy

An active, standalone Timer thread that will execute the timers in the context of its thread.

In the context of pyAculab, this is mostly a test case for TimerBase.

In most cases, if you need timers, use the reactor instead.
Method __init__ Undocumented
Method add Add a timer after interval in seconds.
Method cancel Cancel a timer.
Method run Run the Timer in the current thread.

Inherited from TimerBase:

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.
def cancel(self, timer): (source)
Cancel a timer. Cancelling an expired timer raises a ValueError
def run(self): (source)
Run the Timer in the current thread. If you want to run the Timer in its own thread, call start()
API Documentation for pyAculab, generated by pydoctor at 2009-01-02 15:12:29.