Module threading :: Class _Timer
[hide private]
[frames] | no frames]

type _Timer

object --+        
         |        
  _Verbose --+    
             |    
        Thread --+
                 |
                _Timer

Call a function after a specified number of seconds:

t = Timer(30.0, f, args=[], kwargs={}) t.start() t.cancel() # stop the timer's action if it's still waiting

Instance Methods [hide private]
 
__init__(self, interval, function, args=[], kwargs={})
 
cancel(self)
Stop the timer if it hasn't finished yet
 
run(self)

Inherited from Thread: __repr__, getName, isAlive, isDaemon, join, setDaemon, setName, start

Inherited from Thread (private): _set_daemon

Inherited from _Verbose (private): _note

Method Details [hide private]

__init__(self, interval, function, args=[], kwargs={})
(Constructor)

 
Overrides: _Verbose.__init__

run(self)

 
Overrides: Thread.run