class documentation
class botService(service.MultiService): (source)
Wrapper class for the scheduling functions of twisted.internet.reactor.ReactorTime
Method | __init__ |
Undocumented |
Method | call |
executes function at datetime dt with arguments *args and keyword arguments **kwargs |
Method | call |
executes function after time seconds with arguments *args and keyword arguments **kwargs |
Method | call |
executes function every delay seconds with keyword arguments **kwargs |
Method | cancel |
cancel a delayed call |
Class Variable | name |
Undocumented |
Instance Variable | logger |
Undocumented |
Instance Variable | parent |
Undocumented |
Instance Variable | root |
Undocumented |
executes function at datetime dt with arguments *args and keyword arguments **kwargs
Parameters | |
dt:datetime | datetime object with the time when to execute function |
function:callable | the function to call |
*args:tuple | arguments for the function |
**kwargs:dict | keyworded arguments for the function |
executes function after time seconds with arguments *args and keyword arguments **kwargs
Parameters | |
time:int | seconds to wait before executing function |
function:callable | the function to call |
*args:tuple | arguments for the function |
**kwargs:dict | keyworded arguments for the function |
executes function every delay seconds with keyword arguments **kwargs
Parameters | |
delay:int | the delay between two runs of the function |
function:callable | the function to be called |
kwargs:dict | the keyworded arguments for the function |
Note | |
add the possibility to give a *args-tuple (need to know how to merge two tuples) if the function returns a value which evaluates to False, the periodic call will be canceled |