Class t.i.t.LoopingCall:

Part of twisted.internet.task View Source View In Hierarchy

Call a function repeatedly.
Instance VariablesfThe function to call.
aA tuple of arguments to pass the function.
kw

A dictionary of keyword arguments to pass to the function.

If f returns a deferred, rescheduling will not take place until the deferred has fired. The result value is ignored.
Method _callLater Undocumented
Method __init__ Undocumented
Method start Start running function every interval seconds.
Method stop Stop running function.
Method __call__ Undocumented
Method _reschedule Undocumented
Method __repr__ Undocumented
def _callLater(self, delay): (source)
Undocumented
def __init__(self, f, *a, **kw): (source)
Undocumented
def start(self, interval, now=True): (source)
Start running function every interval seconds.
ParametersintervalThe number of seconds between calls. May be less than one. Precision will depend on the underlying platform, the available hardware, and the load on the system.
nowIf True, run this call right now. Otherwise, wait until the interval has elapsed before beginning.
ReturnsA Deferred whose callback will be invoked with self when self.stop is called, or whose errback will be invoked when the function raises an exception or returned a deferred that has its errback invoked.
def stop(self): (source)
Stop running function.
def __call__(self): (source)
Undocumented
def _reschedule(self): (source)
Undocumented
def __repr__(self): (source)
Undocumented
API Documentation for twisted, generated by pydoctor.