Interop\Async\Loop\Driver::delay PHP Method

delay() abstract public method

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.
return string An unique identifier that can be used to cancel, enable or disable the watcher.
    public abstract function delay($delay, callable $callback, $data = null);