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

Breadcrumb

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

function PromiseInterface::cancel

Same name in this branch
  1. 11.1.x vendor/react/promise/src/PromiseInterface.php \React\Promise\PromiseInterface::cancel()

Cancels the promise if possible.

See also

https://github.com/promises-aplus/cancellation-spec/issues/7

4 methods override PromiseInterface::cancel()
Coroutine::cancel in vendor/guzzlehttp/promises/src/Coroutine.php
Cancels the promise if possible.
FulfilledPromise::cancel in vendor/guzzlehttp/promises/src/FulfilledPromise.php
Cancels the promise if possible.
Promise::cancel in vendor/guzzlehttp/promises/src/Promise.php
Cancels the promise if possible.
RejectedPromise::cancel in vendor/guzzlehttp/promises/src/RejectedPromise.php
Cancels the promise if possible.

File

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

Class

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

Namespace

GuzzleHttp\Promise

Code

public function cancel() : void;

API Navigation

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