Wrapper class for the scheduling functions of twisted.internet.reactor.ReactorTime

Method __init__ Undocumented
Method callLater No summary
Method cancelCallLater cancel a delayed call @param callID: the call to cancel (id returned in callLater)
Method callPeriodic No summary
Method callAtDatetime No summary
def __init__(self, root, parent): (source)
Undocumented
def callLater(self, time, function, *args, **kwargs): (source)

executes function after time seconds with arguments *args and keyword arguments **kwargs

Parameterstimeseconds to wait before executing function (type: int)
functionthe function to call (type: callable)
*argsarguments for the function (type: tuple)
**kwargskeyworded arguments for the function (type: dict)
def cancelCallLater(self, callID): (source)

cancel a delayed call

ParameterscallIDthe call to cancel (id returned in callLater)
def callPeriodic(self, delay, function, kwargs={}): (source)

executes function every delay seconds with keyword arguments **kwargs

Parametersdelaythe delay between two runs of the function (type: int)
functionthe function to be called (type: callable)
kwargsthe keyworded arguments for the function (type: dict)
Noteadd 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

def callAtDatetime(self, dt, function, *args, **kwargs): (source)

executes function at datetime dt with arguments *args and keyword arguments **kwargs

Parametersdtdatetime object with the time when to execute function (type: datetime)
functionthe function to call (type: callable)
*argsarguments for the function (type: tuple)
**kwargskeyworded arguments for the function (type: dict)
API Documentation for OtfBot, generated by pydoctor at 2020-03-04 02:00:06.