class documentation

class twisted.internet.base.DelayedCall: (source)

View In Hierarchy

Undocumented

Class Variable debug Undocumented
Method __init__ No summary
Instance Variable time Undocumented
Instance Variable func Undocumented
Instance Variable args Undocumented
Instance Variable kw Undocumented
Instance Variable resetter Undocumented
Instance Variable canceller Undocumented
Instance Variable seconds Undocumented
Instance Variable cancelled Undocumented
Instance Variable called Undocumented
Instance Variable delayed_time Undocumented
Instance Variable creator Undocumented
Method getTime Return the time at which this call will fire
Method cancel Unschedule this call
Method reset Reschedule this call for a different time
Method delay Reschedule this call for a later time
Method activate_delay Undocumented
Method active Determine whether this call is still pending
Method __le__ Implement <= operator between two DelayedCall instances.
Method __lt__ Implement < operator between two DelayedCall instances.
Method __repr__ Implement repr() for DelayedCall instances.
Instance Variable _repr Undocumented
debug = (source)

Undocumented

(type: bool)
_repr = (source)

Undocumented

def __init__(self, time, func, args, kw, cancel, reset, seconds=runtimeSeconds): (source)
ParameterstimeSeconds from the epoch at which to call func. (type: float)
funcThe callable to call. (type: Callable[..., Any])
argsThe positional arguments to pass to the callable. (type: Sequence[object])
kwThe keyword arguments to pass to the callable. (type: Dict[str, object])
cancelA callable which will be called with this DelayedCall before cancellation. (type: Callable[[DelayedCall], None])
resetA callable which will be called with this DelayedCall after changing this DelayedCall's scheduled execution time. The callable should adjust any necessary scheduling details to ensure this DelayedCall is invoked at the new appropriate time. (type: Callable[[DelayedCall], None])
secondsIf provided, a no-argument callable which will be used to determine the current time any time that information is needed. (type: Callable[[], float])
time = (source)

Undocumented

func = (source)

Undocumented

args = (source)

Undocumented

Undocumented

resetter = (source)

Undocumented

canceller = (source)

Undocumented

seconds = (source)

Undocumented

cancelled = (source)

Undocumented

(type: int)
called = (source)

Undocumented

(type: int)
delayed_time = (source)

Undocumented

(type: float)
creator = (source)

Undocumented

def getTime(self): (source)

Return the time at which this call will fire

ReturnsThe number of seconds after the epoch at which this call is scheduled to be made. (type: float)
def cancel(self): (source)

Unschedule this call

RaisesAlreadyCancelledRaised if this call has already been unscheduled.
AlreadyCalledRaised if this call has already been made.
def reset(self, secondsFromNow): (source)

Reschedule this call for a different time

ParameterssecondsFromNowThe number of seconds from the time of the reset call at which this call will be scheduled. (type: float)
RaisesAlreadyCancelledRaised if this call has been cancelled.
AlreadyCalledRaised if this call has already been made.
def delay(self, secondsLater): (source)

Reschedule this call for a later time

ParameterssecondsLaterThe number of seconds after the originally scheduled time for which to reschedule this call. (type: float)
RaisesAlreadyCancelledRaised if this call has been cancelled.
AlreadyCalledRaised if this call has already been made.
def activate_delay(self): (source)

Undocumented

def active(self): (source)

Determine whether this call is still pending

ReturnsTrue if this call has not yet been made or cancelled, False otherwise. (type: bool)
def __le__(self, other): (source)

Implement <= operator between two DelayedCall instances.

Comparison is based on the time attribute (unadjusted by the delayed time).

ParametersotherUndocumented (type: object)
ReturnsUndocumented (type: bool)
def __lt__(self, other): (source)

Implement < operator between two DelayedCall instances.

Comparison is based on the time attribute (unadjusted by the delayed time).

ParametersotherUndocumented (type: object)
ReturnsUndocumented (type: bool)
def __repr__(self): (source)

Implement repr() for DelayedCall instances.

ReturnsString containing details of the DelayedCall. (type: str)
API Documentation for Twisted, generated by pydoctor 20.12.1 at 2021-02-28 19:53:36.