function Promise::reject
Same name in this branch
- 11.1.x vendor/react/promise/src/Promise.php \React\Promise\Promise::reject()
Overrides PromiseInterface::reject
3 calls to Promise::reject()
- Promise::cancel in vendor/
guzzlehttp/ promises/ src/ Promise.php - Cancels the promise if possible.
- Promise::invokeWaitFn in vendor/
guzzlehttp/ promises/ src/ Promise.php - Promise::waitIfPending in vendor/
guzzlehttp/ promises/ src/ Promise.php
File
-
vendor/
guzzlehttp/ promises/ src/ Promise.php, line 118
Class
- Promise
- Promises/A+ implementation that avoids recursion when possible.
Namespace
GuzzleHttp\PromiseCode
public function reject($reason) : void {
$this->settle(self::REJECTED, $reason);
}