You are here

public function NotPromiseInstance::resolve in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/guzzlehttp/promises/tests/NotPromiseInstance.php \GuzzleHttp\Promise\Tests\NotPromiseInstance::resolve()

Resolve the promise with the given value.

Parameters

mixed $value:

Throws

\RuntimeException if the promise is already resolved.

Overrides Thennable::resolve

File

vendor/guzzlehttp/promises/tests/NotPromiseInstance.php, line 26

Class

NotPromiseInstance

Namespace

GuzzleHttp\Promise\Tests

Code

public function resolve($value) {
  $this->nextPromise
    ->resolve($value);
}