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

Breadcrumb

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

function PromiseInterface::getState

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.

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 50

Class

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

Namespace

GuzzleHttp\Promise

Code

public function getState() : string;

API Navigation

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