scheduleAbsoluteWithState() 공개 메소드

public scheduleAbsoluteWithState ( $state, $dueTime, callable $action )
$action callable
예제 #1
0
 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;
 }