Property | Type | Description | |
---|---|---|---|
$clock | |||
$comparer | |||
$isEnabled | |||
$queue |
Method | Description | |
---|---|---|
__construct ( integer $initialClock, callable $comparer ) | ||
getClock ( ) | ||
getNext ( ) | ||
now ( ) | ||
schedule ( callable $action, $delay ) | ||
scheduleAbsolute ( $dueTime, $action ) | ||
scheduleAbsoluteWithState ( $state, $dueTime, callable $action ) | ||
schedulePeriodic ( callable $action, $delay, $period ) | ||
scheduleRecursive ( callable $action ) | ||
scheduleRelativeWithState ( $state, $dueTime, $action ) | ||
start ( ) |
public __construct ( integer $initialClock, callable $comparer ) | ||
$initialClock | integer | Initial value for the clock. |
$comparer | callable | Comparer to determine causality of events based on absolute time. |
public scheduleAbsoluteWithState ( $state, $dueTime, callable $action ) | ||
$action | callable |
public schedulePeriodic ( callable $action, $delay, $period ) | ||
$action | callable |
public scheduleRelativeWithState ( $state, $dueTime, $action ) |