public function scheduleAbsoluteWithState($state, $dueTime, callable $action) { if ($dueTime <= $this->clock) { $dueTime = $this->clock + 1; } return parent::scheduleAbsoluteWithState($state, $dueTime, $action); }
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; }