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

Breadcrumb

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

function Promise::getState

Same name in this branch
  1. 11.1.x vendor/php-http/guzzle7-adapter/src/Promise.php \Http\Adapter\Guzzle7\Promise::getState()
  2. 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\Promise

Code

public function getState();

API Navigation

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