PHP Class Rx\Scheduler\VirtualTimeScheduler

Inheritance: implements Rx\SchedulerInterface
Afficher le fichier Open project: ReactiveX/RxPHP Class Usage Examples

Protected Properties

Свойство Type Description
$clock
$comparer
$isEnabled
$queue

Méthodes publiques

Méthode 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 méthode

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 méthode

public getClock ( )

getNext() public méthode

public getNext ( )

now() public méthode

public now ( )

schedule() public méthode

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

scheduleAbsolute() public méthode

public scheduleAbsolute ( $dueTime, $action )

scheduleAbsoluteWithState() public méthode

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

schedulePeriodic() public méthode

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

scheduleRecursive() public méthode

public scheduleRecursive ( callable $action )
$action callable

scheduleRelativeWithState() public méthode

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

start() public méthode

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