You are here

public function Coroutine::getState in Auth0 Single Sign On 8.2

Get the state of the promise ("pending", "rejected", or "fulfilled").

The three states can be checked against the constants defined on PromiseInterface: PENDING, FULFILLED, and REJECTED.

Return value

string

Overrides PromiseInterface::getState

File

vendor/guzzlehttp/promises/src/Coroutine.php, line 88

Class

Coroutine
Creates a promise that is resolved using a generator that yields values or promises (somewhat similar to C#'s async keyword).

Namespace

GuzzleHttp\Promise

Code

public function getState() {
  return $this->result
    ->getState();
}