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);