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