You are here

public function RejectedPromise::resolve in Zircon Profile 8

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

Resolve the promise with the given value.

Parameters

mixed $value:

Throws

\RuntimeException if the promise is already resolved.

Overrides PromiseInterface::resolve

File

vendor/guzzlehttp/promises/src/RejectedPromise.php, line 68

Class

RejectedPromise
A promise that has been rejected.

Namespace

GuzzleHttp\Promise

Code

public function resolve($value) {
  throw new \LogicException("Cannot resolve a rejected promise");
}