Part of twisted.internet.task View Source View In Hierarchy
Call a function repeatedly.
Iff
returns a deferred, rescheduling will not take place
until the deferred has fired. The result value is ignored.
Instance Variables | f | The function to call. |
a | A tuple of arguments to pass the function. | |
kw | A dictionary of keyword arguments to pass to the function. | |
clock | A provider of twisted.internet.interfaces.IReactorTime .
The default is twisted.internet.reactor .
Feel free to set this to something else, but it probably ought to be set
*before* calling start .
| |
_lastTime | The time at which this instance most recently scheduled itself to
run.
(type: float
) |
Method | __init__ | Undocumented |
Method | start | Start running function every interval seconds. |
Method | stop | Stop running function. |
Method | __call__ | Undocumented |
Method | __repr__ | Undocumented |
Method | _reschedule | Schedule the next iteration of this looping call. |
Parameters | interval | The 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. |
now | If True, run this call right now. Otherwise, wait until the interval has elapsed before beginning. | |
Returns | A 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.
|