MIN_INTERVAL
MIN_INTERVAL
__construct(\React\EventLoop\LoopInterface $loop, float $interval, callable $callback, boolean $periodic = false, mixed $data = null)
Constructor initializes the fields of the Timer
\React\EventLoop\LoopInterface | $loop | The loop with which this timer is associated |
float | $interval | The interval after which this timer will execute, in seconds |
callable | $callback | The callback that will be executed when this timer elapses |
boolean | $periodic | Whether the time is periodic |
mixed | $data | Arbitrary data associated with timer |
getLoop() : \React\EventLoop\LoopInterface
Get the loop with which this timer is associated