Class s.Scheduler:

Part of scheduler View In Hierarchy

Wrapper class for the scheduling functions of twisted.internet.reactor.ReactorTime
Method callLater executes function after time seconds with arguments *args and keyword arguments **kwargs
Method cancelCallLater cancel a delayed call
Method callPeriodic executes function every delay seconds with keyword arguments **kwargs
def callLater(self, time, function, *args, **kwargs):
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):
cancel a delayed call
ParameterscallIDthe call to cancel (id returned in callLater)
def callPeriodic(self, delay, function, kwargs={}):
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)
API Documentation for OtfBot, generated by pydoctor at 2010-01-14 18:51:57.