Interface t.i.i.IReactorTime(Interface):

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

Known implementations: twisted.internet.base.ReactorBase
Time methods that a Reactor should implement.
Method callLater Call a function later.
Method cancelCallLater This method is deprecated.
Method getDelayedCalls Retrieve all currently scheduled delayed calls.
def callLater(delay, callable, *args, **kw): (source)
Call a function later.
Parametersdelaythe number of seconds to wait. (type: float )
callablethe callable object to call later.
argsthe arguments to call it with.
kwthe keyword arguments to call it with.
ReturnsAn object which provides IDelayedCall and can be used to cancel the scheduled call, by calling its cancel() method. It also may be rescheduled by calling its delay() or reset() methods.
def cancelCallLater(callID): (source)

This method is deprecated.

Cancel a call that would happen later.
ParameterscallIDthis is an opaque identifier returned from callLater that will be used to cancel a specific call.
RaisesValueErrorif the callID is not recognized.
def getDelayedCalls(): (source)
Retrieve all currently scheduled delayed calls.
ReturnsA tuple of all IDelayedCall providers representing all currently scheduled calls. This is everything that has been returned by callLater but not yet called or canceled.
API Documentation for twisted, generated by pydoctor.