class documentation

Implementation of TimeDriver for Scheduler that is stacked on top of another Scheduler.

Method changeScale Change this recursive driver to be running at the time scale of newScale. i.e. driver.changeScale(timesFaster(3.0)) will change this driver's rate of time passing to be 3x faster than its trunk, presuming it is a float-based timer.
Method now Undocumented
Method pause Undocumented
Method reschedule Undocumented
Method unpause Undocumented
Method unschedule Undocumented
Class Variable trunk The scheduler that this driver is a branch of.
Instance Variable _call Undocumented
Instance Variable _offset Undocumented
Instance Variable _pauseTime Timestamp at which we were last paused, if we were last paused.
Instance Variable _running Undocumented
Instance Variable _scale How much faster the branch time coordinate system is within this scheduler? i.e.: with a scale factor of 2, that means time is running 2 times faster in this branch temporal coordinate system, and self.callAt(3.0, X)...
Instance Variable _scheduleWhenStarted Undocumented
def changeScale(self, newScale: Scale[_BranchTime, _TrunkTime, _TrunkDelta]): (source)

Change this recursive driver to be running at the time scale of newScale. i.e. driver.changeScale(timesFaster(3.0)) will change this driver's rate of time passing to be 3x faster than its trunk, presuming it is a float-based timer.

def now(self) -> _BranchTime: (source)

Undocumented

def pause(self): (source)

Undocumented

def reschedule(self, desiredTime: _BranchTime, work: Callable[[], None]): (source)

Undocumented

def unpause(self): (source)

Undocumented

def unschedule(self): (source)

Undocumented

The scheduler that this driver is a branch of.

Undocumented

Undocumented

Timestamp at which we were last paused, if we were last paused.

_running: bool = (source)

Undocumented

How much faster the branch time coordinate system is within this scheduler? i.e.: with a scale factor of 2, that means time is running 2 times faster in this branch temporal coordinate system, and self.callAt(3.0, X) will run X when the trunk's current timestamp is 1.5.

_scheduleWhenStarted: tuple[_BranchTime, Callable[[], None]] | None = (source)

Undocumented