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

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

Time methods that a Reactor should implement.
Method seconds Get the current time in seconds.
Method callLater Call a function later.
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 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 2013-11-18 18:11:01.