You are here

public function Thennable::then in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/guzzlehttp/promises/tests/Thennable.php \GuzzleHttp\Promise\Tests\Thennable::then()
1 method overrides Thennable::then()
NotPromiseInstance::then in vendor/guzzlehttp/promises/tests/NotPromiseInstance.php
Appends fulfillment and rejection handlers to the promise, and returns a new promise resolving to the return value of the called handler.

File

vendor/guzzlehttp/promises/tests/Thennable.php, line 15

Class

Thennable

Namespace

GuzzleHttp\Promise\Tests

Code

public function then(callable $res = null, callable $rej = null) {
  return $this->nextPromise
    ->then($res, $rej);
}