src/Deferred.php
public function reject(ClientExceptionInterface $exception): void
    {
        if (Promise::PENDING !== $this->state) {
            return;
        }

        $this->failure = $exception;
        $this->state = Promise::REJECTED;

        foreach ($this->onRejectedCallbacks as $onRejectedCallback) {
            $onRejectedCallback($exception);
        }
    }
public function reject(ClientExceptionInterface $exception): void
    {
        if (Promise::PENDING !== $this->state) {
            return;
        }

        $this->failure = $exception;
        $this->state = Promise::REJECTED;

        foreach ($this->onRejectedCallbacks as $onRejectedCallback) {
            $onRejectedCallback($exception);
        }
    }
public function reject ( ClientExceptionInterface $ exception ) : void { if ( Promise :: PENDING !== $ this -> state ) { return ; } $ this -> failure = $ exception ; $ this -> state = Promise :: REJECTED ; foreach ( $ this -> onRejectedCallbacks as $ onRejectedCallback ) { $ onRejectedCallback ( $ exception ) ; } }
Reject this deferred with an Exception.
Reject this deferred with an Exception .