Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. Is.php

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

Is

Namespace

GuzzleHttp\Promise

Code

public static function pending(PromiseInterface $promise) : bool {
    return $promise->getState() === PromiseInterface::PENDING;
}

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal