Interop\Async\Loop\Driver::delay PHP Метод

delay() абстрактный публичный Метод

The delay 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.
abstract public delay ( integer $delay, callable $callback, mixed $data = null ) : string
$delay integer The amount of time, in milliseconds, to delay the execution for.
$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 delay($delay, callable $callback, $data = null);