function is_rejected in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/guzzlehttp/promises/src/functions.php \GuzzleHttp\Promise\is_rejected()
Returns true if a promise is rejected.
Parameters
PromiseInterface $promise:
Return value
bool
File
- vendor/
guzzlehttp/ promises/ src/ functions.php, line 421
Namespace
GuzzleHttp\PromiseCode
function is_rejected(PromiseInterface $promise) {
return $promise
->getState() === PromiseInterface::REJECTED;
}