function Is::pending
Returns true if a promise is pending.
5 calls to Is::pending()
- FulfilledPromise::then in vendor/
guzzlehttp/ promises/ src/ FulfilledPromise.php - Appends fulfillment and rejection handlers to the promise, and returns a new promise resolving to the return value of the called handler.
- Promise::settle in vendor/
guzzlehttp/ promises/ src/ Promise.php - RejectedPromise::then in vendor/
guzzlehttp/ promises/ src/ RejectedPromise.php - Appends fulfillment and rejection handlers to the promise, and returns a new promise resolving to the return value of the called handler.
- Utils::all in vendor/
guzzlehttp/ promises/ src/ Utils.php - Given an array of promises, return a promise that is fulfilled when all the items in the array are fulfilled.
- Utils::task in vendor/
guzzlehttp/ promises/ src/ Utils.php - Adds a function to run in the task queue when it is next `run()` and returns a promise that is fulfilled or rejected with the result.
File
-
vendor/
guzzlehttp/ promises/ src/ Is.php, line 12
Class
Namespace
GuzzleHttp\PromiseCode
public static function pending(PromiseInterface $promise) : bool {
return $promise->getState() === PromiseInterface::PENDING;
}