interface documentation

class IReactorTime(Interface): (source)

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

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 See twisted.internet.interfaces.IReactorTime.getDelayedCalls
def seconds(): (source)

Get the current time in seconds.

ReturnsA number-like object of some sort. (type: float)
def callLater(delay, callable, *args, **kwargs): (source)

Call a function later.

Parametersdelaythe number of seconds to wait. (type: float)
callablethe callable object to call later. (type: Callable[..., Any])
argsthe arguments to call it with. (type: object)
kwargsthe keyword arguments to call it with. (type: object)
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. (type: IDelayedCall)
API Documentation for Twisted, generated by pydoctor 21.2.2 at 2021-07-28 08:52:54.