Amp\Pause::__construct PHP 메소드

__construct() 공개 메소드

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