Package brisa :: Package core :: Package reactors :: Module _select :: Class Timer
[hide private]
[frames] | no frames]

Class Timer

source code

object --+
         |
        Timer

Timer class.

Instance Methods [hide private]
 
__init__(self, callback, timeout_rel, timeout_abs, threshold)
Constructor for the Timer class
source code
 
__call__(self)
Performs the callback.
source code
 
update_abs_timeout(self)
Updates absolute timeout based on the time now and the relative timeout specified.
source code
 
__str__(self)
String representation of the class.
source code

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __subclasshook__

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, callback, timeout_rel, timeout_abs, threshold)
(Constructor)

source code 

Constructor for the Timer class

Parameters:
  • callback - function to be called
  • timeout_rel - seconds from now to sleep before the call
  • timeout_abs - seconds since epoch when the call is scheduled
  • threshold - lower acceptable bound for timeout_abs precision
Overrides: object.__init__

__str__(self)
(Informal representation operator)

source code 

String representation of the class.

Overrides: object.__str__