You are here

public function Promise::reject in Auth0 Single Sign On 8.2

Reject the promise with the given reason.

Parameters

mixed $reason:

Throws

\RuntimeException if the promise is already resolved.

Overrides PromiseInterface::reject

3 calls to Promise::reject()
Promise::cancel in vendor/guzzlehttp/promises/src/Promise.php
Cancels the promise if possible.
Promise::invokeWaitFn in vendor/guzzlehttp/promises/src/Promise.php
Promise::waitIfPending in vendor/guzzlehttp/promises/src/Promise.php

File

vendor/guzzlehttp/promises/src/Promise.php, line 116

Class

Promise
Promises/A+ implementation that avoids recursion when possible.

Namespace

GuzzleHttp\Promise

Code

public function reject($reason) {
  $this
    ->settle(self::REJECTED, $reason);
}