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