interface documentation
class IReactorTime(Interface): (source)
Known implementations: twisted.internet.base.ReactorBase
, twisted.internet.task.Clock
Time methods that a Reactor should implement.
Method | call |
Call a function later. |
Method | get |
See twisted.internet.interfaces.IReactorTime.getDelayedCalls |
Method | seconds |
Get the current time in seconds. |
def callLater(delay:
float
, callable: Callable[ ..., Any]
, *args: object
, **kwargs: object
) -> IDelayedCall
:
(source)
¶
Call a function later.
Parameters | |
delay:float | the number of seconds to wait. |
callable:Callable[ | the callable object to call later. |
*args:object | the arguments to call it with. |
**kwargs:object | the keyword arguments to call it with. |
Returns | |
IDelayedCall | 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. |