public function RejectedPromise::resolve in Lockr 7.3
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 71
Class
- RejectedPromise
- A promise that has been rejected.
Namespace
GuzzleHttp\PromiseCode
public function resolve($value) {
throw new \LogicException("Cannot resolve a rejected promise");
}