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

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

Known implementations: twisted.internet.base.ReactorBase, twisted.internet.task.Clock

Time methods that a Reactor should implement.
Method seconds Get the current time in seconds.
Method callLater Call a function later.
Method cancelCallLater This method is deprecated.
Method getDelayedCalls Retrieve all currently scheduled delayed calls.
def seconds(): (source)
Get the current time in seconds.
ReturnsA number-like object of some sort.
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 at 2011-10-27 16:12:41.