Package entropy :: Module cache :: Class EntropyCacher :: Class SemaphoreTimeScheduled

Class SemaphoreTimeScheduled

source code


Instance Methods
None
__init__(self, sem, *args, **kwargs)
TimeScheduled constructor.
source code
 
kill(self)
Stop the execution of the timed function
source code

Inherited from misc.TimeScheduled: pause, run, set_accuracy, set_delay, set_delay_before, start

Inherited from threading.Thread: __repr__, getName, isAlive, isDaemon, is_alive, join, setDaemon, setName

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

Properties

Inherited from threading.Thread: daemon, ident, name

Inherited from object: __class__

Method Details

__init__(self, sem, *args, **kwargs)
(Constructor)

source code 

TimeScheduled constructor.

Parameters:
  • delay - delay in seconds between a function call and another.
  • *args - function as first magic arg and its arguments
  • *kwargs - keyword arguments of the function passed
Returns: None
None
Overrides: object.__init__
(inherited documentation)

kill(self)

source code 

Stop the execution of the timed function

Overrides: misc.TimeScheduled.kill
(inherited documentation)