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

Breadcrumb

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

function Promise::then

Same name in this branch
  1. 11.1.x vendor/react/promise/src/Promise.php \React\Promise\Promise::then()
  2. 11.1.x vendor/php-http/promise/src/Promise.php \Http\Promise\Promise::then()
  3. 11.1.x vendor/guzzlehttp/promises/src/Promise.php \GuzzleHttp\Promise\Promise::then()

Overrides Promise::then

File

vendor/php-http/guzzle7-adapter/src/Promise.php, line 73

Class

Promise
Wrapper around Guzzle promises.

Namespace

Http\Adapter\Guzzle7

Code

public function then(?callable $onFulfilled = null, ?callable $onRejected = null) {
    return new static($this->promise
        ->then($onFulfilled, $onRejected), $this->request);
}

API Navigation

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