PHP Class Rx\Scheduler\VirtualTimeScheduler

Inheritance: implements Rx\SchedulerInterface
Datei anzeigen Open project: ReactiveX/RxPHP Class Usage Examples

Protected Properties

Property Type Description
$clock
$comparer
$isEnabled
$queue

Public Methods

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 ( )

Method Details

__construct() public method

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.

getClock() public method

public getClock ( )

getNext() public method

public getNext ( )

now() public method

public now ( )

schedule() public method

public schedule ( callable $action, $delay )
$action callable

scheduleAbsolute() public method

public scheduleAbsolute ( $dueTime, $action )

scheduleAbsoluteWithState() public method

public scheduleAbsoluteWithState ( $state, $dueTime, callable $action )
$action callable

schedulePeriodic() public method

public schedulePeriodic ( callable $action, $delay, $period )
$action callable

scheduleRecursive() public method

public scheduleRecursive ( callable $action )
$action callable

scheduleRelativeWithState() public method

public scheduleRelativeWithState ( $state, $dueTime, $action )

start() public method

public start ( )

Property Details

$clock protected_oe property

protected $clock

$comparer protected_oe property

protected $comparer

$isEnabled protected_oe property

protected $isEnabled

$queue protected_oe property

protected $queue