public function PromiseInterface::resolve in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/guzzlehttp/promises/src/PromiseInterface.php \GuzzleHttp\Promise\PromiseInterface::resolve()
Resolve the promise with the given value.
Parameters
mixed $value:
Throws
\RuntimeException if the promise is already resolved.
3 methods override PromiseInterface::resolve()
- FulfilledPromise::resolve in vendor/
guzzlehttp/ promises/ src/ FulfilledPromise.php - Resolve the promise with the given value.
- Promise::resolve in vendor/
guzzlehttp/ promises/ src/ Promise.php - Resolve the promise with the given value.
- RejectedPromise::resolve in vendor/
guzzlehttp/ promises/ src/ RejectedPromise.php - Resolve the promise with the given value.
File
- vendor/
guzzlehttp/ promises/ src/ PromiseInterface.php, line 61
Class
- PromiseInterface
- A promise represents the eventual result of an asynchronous operation.
Namespace
GuzzleHttp\PromiseCode
public function resolve($value);