예제 #1
0
 /**
  * {@inheritdoc}
  */
 public function timer(float $interval, bool $periodic, callable $callback, array $args = []) : Timer
 {
     return $this->timerManager->create($interval, $periodic, $callback, $args);
 }
예제 #2
0
 /**
  * {@inheritdoc}
  */
 public function timer($interval, $periodic, callable $callback, $data = null) : Timer
 {
     return $this->timerManager->create($interval, $periodic, $callback, $data);
 }