public function Promise::resolve in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/guzzlehttp/promises/src/Promise.php \GuzzleHttp\Promise\Promise::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/ Promise.php, line 107
Class
- Promise
- Promises/A+ implementation that avoids recursion when possible.
Namespace
GuzzleHttp\PromiseCode
public function resolve($value) {
$this
->settle(self::FULFILLED, $value);
}