twisted.internet.interfaces.IReactorTime(Interface)
interface documentationtwisted.internet.interfaces
(View In Hierarchy)
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. |
Call a function later.
Parameters | delay | the number of seconds to wait. (type: float ) |
callable | the callable object to call later. | |
args | the arguments to call it with. | |
kw | the keyword arguments to call it with. | |
Returns | An 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. |
Retrieve all currently scheduled delayed calls.
Returns | A list of IDelayedCall
providers representing all currently scheduled calls. This is everything
that has been returned by callLater but not yet called or
cancelled. |