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;
 }