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

Breadcrumb

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

function PromiseInterface::reject

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 68

Class

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

Namespace

GuzzleHttp\Promise

Code

public function reject($reason) : void;

API Navigation

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