Known implementations: twisted.internet.base.ReactorBase, twisted.internet.task.Clock, twisted.internet.test.test_base.FakeReactor

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():

Get the current time in seconds.

ReturnsA number-like object of some sort.
def callLater(delay, callable, *args, **kw):

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():

Retrieve all currently scheduled delayed calls.

ReturnsA list of IDelayedCall providers representing all currently scheduled calls. This is everything that has been returned by callLater but not yet called or cancelled.
API Documentation for twisted, generated by pydoctor at 2020-03-25 17:34:30.