class twisted.internet.interfaces.IDelayedCall(Interface): (source)
A scheduled call.
There are probably other useful methods we can add to this interface; suggestions are welcome.
Method | getTime | Get time when delayed call will happen. |
Method | cancel | Cancel the scheduled call. |
Method | delay | Delay the scheduled call. |
Method | reset | Reset the scheduled call's timer. |
Method | active |
Get time when delayed call will happen.
Returns | time in seconds since epoch (a float). (type: float ) |
Cancel the scheduled call.
Raises | twisted.internet.error.AlreadyCalled | if the call has already happened. |
twisted.internet.error.AlreadyCancelled | if the call has already been cancelled. |
Delay the scheduled call.
Parameters | secondsLater | how many seconds from its current firing time to delay (type: float ) |
Raises | twisted.internet.error.AlreadyCalled | if the call has already happened. |
twisted.internet.error.AlreadyCancelled | if the call has already been cancelled. |
Reset the scheduled call's timer.
Parameters | secondsFromNow | how many seconds from now it should fire, equivalent to .cancel() and then doing another reactor.callLater(secondsLater, ...) (type: float ) |
Raises | twisted.internet.error.AlreadyCalled | if the call has already happened. |
twisted.internet.error.AlreadyCancelled | if the call has already been cancelled. |