You are here

function is_settled in Auth0 Single Sign On 8.2

Returns true if a promise is fulfilled or rejected.

Parameters

PromiseInterface $promise:

Return value

bool

File

vendor/guzzlehttp/promises/src/functions.php, line 442

Namespace

GuzzleHttp\Promise

Code

function is_settled(PromiseInterface $promise) {
  return $promise
    ->getState() !== PromiseInterface::PENDING;
}