class documentation

class ConcreteScheduledCall(Generic[WhenT, WhatT, IDT]): (source)

View In Hierarchy

A handle to a call that has been scheduled.

Method cancel Cancel this ScheduledCall, making it so that it will not be invoked in the future. If the work described by when has already been called, or this call has already been cancelled, do nothing.
Property id Return a unique identifier for this scheduled call.
Property state Is this call still waiting to be called, or has it been called or cancelled?
Property what If this has not been called or cancelled, return the original callable that was scheduled.
Property when Return the original time at which the call will be scheduled.
Method _call Invoke the callable and adjust the state.
Class Variable _id Undocumented
Class Variable _when Undocumented
Instance Variable _called Undocumented
Instance Variable _cancelled Undocumented
Instance Variable _canceller Undocumented
Instance Variable _what Undocumented
def cancel(self): (source)

Cancel this ScheduledCall, making it so that it will not be invoked in the future. If the work described by when has already been called, or this call has already been cancelled, do nothing.

Return a unique identifier for this scheduled call.

Is this call still waiting to be called, or has it been called or cancelled?

If this has not been called or cancelled, return the original callable that was scheduled.

Note
To break cycles, this will only have a non-None value when in ScheduledState.pending.

Return the original time at which the call will be scheduled.

def _call(self): (source)

Invoke the callable and adjust the state.

Undocumented

Undocumented

Undocumented

_cancelled: bool = (source)

Undocumented

Undocumented