Module t.i.task

Part of twisted.internet View Source

Scheduling utility methods and classes.
AuthorJp Calderone
Line # Kind Name Docs
23 Class LoopingCall Call a function repeatedly.
156 Class SchedulerStopped The operation could not complete because the scheduler was stopped in
182 Class Cooperator Cooperative task scheduler.
303 Function coiterate Cooperatively iterate over the given iterator, dividing runtime between it
313 Class Clock Provide a deterministic, easily-controlled implementation of
383 Function deferLater Call the given function after a certain period of time has passed.
164 Class _Timer Undocumented
176 Function _defaultScheduler Undocumented
def _defaultScheduler(x): (source)
Undocumented
def coiterate(iterator): (source)
Cooperatively iterate over the given iterator, dividing runtime between it and all other iterators which have been passed to this function and not yet exhausted.
def deferLater(clock, delay, callable, *args, **kw): (source)
Call the given function after a certain period of time has passed.
ParametersclockThe object which will be used to schedule the delayed call. (type: IReactorTime provider )
delayThe number of seconds to wait before calling the function. (type: float or int )
callableThe object to call after the delay.
*argsThe positional arguments to pass to callable.
**kwThe keyword arguments to pass to callable.
ReturnsA deferred that fires with the result of the callable when the specified time has elapsed. (type: defer.Deferred )
API Documentation for Twisted, generated by pydoctor at 2008-10-26 16:12:37.