Amp\Pause::__construct PHP Method

__construct() public method

public __construct ( integer $time, mixed $value = null )
$time integer Milliseconds before succeeding the promise.
$value mixed Succeed the promise with this value.
    public function __construct(int $time, $value = null)
    {
        Loop::delay($time, function () use($value) {
            $this->resolve($value);
        });
    }