You are here

public function PromiseInterface::getState in Lockr 7.3

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

4 methods override PromiseInterface::getState()
Coroutine::getState in vendor/guzzlehttp/promises/src/Coroutine.php
Get the state of the promise ("pending", "rejected", or "fulfilled").
FulfilledPromise::getState in vendor/guzzlehttp/promises/src/FulfilledPromise.php
Get the state of the promise ("pending", "rejected", or "fulfilled").
Promise::getState in vendor/guzzlehttp/promises/src/Promise.php
Get the state of the promise ("pending", "rejected", or "fulfilled").
RejectedPromise::getState in vendor/guzzlehttp/promises/src/RejectedPromise.php
Get the state of the promise ("pending", "rejected", or "fulfilled").

File

vendor/guzzlehttp/promises/src/PromiseInterface.php, line 53

Class

PromiseInterface
A promise represents the eventual result of an asynchronous operation.

Namespace

GuzzleHttp\Promise

Code

public function getState();