You are here

public function PromiseInterface::reject in Lockr 7.3

Reject the promise with the given reason.

Parameters

mixed $reason:

Throws

\RuntimeException if the promise is already resolved.

4 methods override PromiseInterface::reject()
Coroutine::reject in vendor/guzzlehttp/promises/src/Coroutine.php
Reject the promise with the given reason.
FulfilledPromise::reject in vendor/guzzlehttp/promises/src/FulfilledPromise.php
Reject the promise with the given reason.
Promise::reject in vendor/guzzlehttp/promises/src/Promise.php
Reject the promise with the given reason.
RejectedPromise::reject in vendor/guzzlehttp/promises/src/RejectedPromise.php
Reject the promise with the given reason.

File

vendor/guzzlehttp/promises/src/PromiseInterface.php, line 69

Class

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

Namespace

GuzzleHttp\Promise

Code

public function reject($reason);