Interop\Async\Loop\Driver::repeat PHP 메소드

repeat() 추상적인 공개 메소드

The interval between executions is a minimum and approximate, accuracy is not guaranteed. Order of calls MUST be determined by which timers expire first, but timers with the same expiration time MAY be executed in any order. The first execution is scheduled after the first interval period.
abstract public repeat ( integer $interval, callable $callback, mixed $data = null ) : string
$interval integer The time interval, in milliseconds, to wait between executions.
$callback callable
$data mixed Arbitrary data given to the callback function as the `$data` parameter.
리턴 string An unique identifier that can be used to cancel, enable or disable the watcher.
    public abstract function repeat($interval, callable $callback, $data = null);