function Promise::getState
Same name in this branch
- 11.1.x vendor/php-http/guzzle7-adapter/src/Promise.php \Http\Adapter\Guzzle7\Promise::getState()
- 11.1.x vendor/guzzlehttp/promises/src/Promise.php \GuzzleHttp\Promise\Promise::getState()
Returns the state of the promise, one of PENDING, FULFILLED or REJECTED.
Return value
string
5 methods override Promise::getState()
- FulfilledPromise::getState in vendor/
php-http/ promise/ src/ FulfilledPromise.php - Returns the state of the promise, one of PENDING, FULFILLED or REJECTED.
- HttpFulfilledPromise::getState in vendor/
php-http/ httplug/ src/ Promise/ HttpFulfilledPromise.php - Returns the state of the promise, one of PENDING, FULFILLED or REJECTED.
- HttpRejectedPromise::getState in vendor/
php-http/ httplug/ src/ Promise/ HttpRejectedPromise.php - Returns the state of the promise, one of PENDING, FULFILLED or REJECTED.
- Promise::getState in vendor/
php-http/ guzzle7-adapter/ src/ Promise.php - Returns the state of the promise, one of PENDING, FULFILLED or REJECTED.
- RejectedPromise::getState in vendor/
php-http/ promise/ src/ RejectedPromise.php - Returns the state of the promise, one of PENDING, FULFILLED or REJECTED.
File
-
vendor/
php-http/ promise/ src/ Promise.php, line 51
Class
- Promise
- Promise represents a value that may not be available yet, but will be resolved at some point in future. It acts like a proxy to the actual value.
Namespace
Http\PromiseCode
public function getState();