scheduleAbsoluteWithState() public method

public scheduleAbsoluteWithState ( $state, $dueTime, callable $action )
$action callable
コード例 #1
0
ファイル: TestScheduler.php プロジェクト: voryx/Rx.PHP
 public function scheduleAbsoluteWithState($state, $dueTime, callable $action)
 {
     if ($dueTime <= $this->clock) {
         $dueTime = $this->clock + 1;
     }
     return parent::scheduleAbsoluteWithState($state, $dueTime, $action);
 }
コード例 #2
0
 public function scheduleAbsoluteWithState($state, $dueTime, callable $action)
 {
     $disp = parent::scheduleAbsoluteWithState($state, $dueTime, $action);
     if (!$this->insideInvoke) {
         call_user_func($this->timerCallable, 0, [$this, 'start']);
     }
     return $disp;
 }