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/guzzlehttp/promises/src/PromiseInterface.php \GuzzleHttp\Promise\PromiseInterface::cancel()

The `cancel()` method notifies the creator of the promise that there is no further interest in the results of the operation.

Once a promise is settled (either fulfilled or rejected), calling `cancel()` on a promise has no effect.

Return value

void

3 methods override PromiseInterface::cancel()
FulfilledPromise::cancel in vendor/react/promise/src/Internal/FulfilledPromise.php
The `cancel()` method notifies the creator of the promise that there is no further interest in the results of the operation.
Promise::cancel in vendor/react/promise/src/Promise.php
The `cancel()` method notifies the creator of the promise that there is no further interest in the results of the operation.
RejectedPromise::cancel in vendor/react/promise/src/Internal/RejectedPromise.php
The `cancel()` method notifies the creator of the promise that there is no further interest in the results of the operation.

File

vendor/react/promise/src/PromiseInterface.php, line 115

Class

PromiseInterface
@template-covariant T

Namespace

React\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