Part of twisted.internet.task View Source View In Hierarchy
Call a function repeatedly.If
freturns 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 |
|_expectNextCallAt||The time at which this instance most recently scheduled itself to
|_realLastTime||When counting skips, the time at which the skip counter was last
|_runAtStart||A flag indicating whether the 'now' argument was passed to |
|Class Method||withCount||An alternate constructor for
|Method||start||Start running function every interval seconds.|
|Method||stop||Stop running function.|
|Method||_intervalOf||Determine the number of intervals passed as of the given point in time.|
|Method||_reschedule||Schedule the next iteration of this looping call.|
An alternate constructor for
that makes available the number of calls which should have occurred since
it was last invoked.
Note that this number is an
int value; It represents the
discrete number of calls that should have been made. For example, if you
are using a looping call to display an animation with discrete frames, this
number would be the number of frames to advance.
LoopingCall, a Deferred returned from a previous call is not fired before an interval has elapsed, or if the callable itself blocks for longer than an interval, preventing itself from being called.
|Parameters||countCallable||A callable that will be invoked each time the resulting LoopingCall is
run, with an integer specifying the number of calls that should have been
(type: 1-argument callable which takes an |
|Returns||An instance of |
|Parameters||t||The specified time (from the start of the |
|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 |