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

Breadcrumb

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

function CancellationQueue::enqueue

Parameters

mixed $cancellable:

File

vendor/react/promise/src/Internal/CancellationQueue.php, line 29

Class

CancellationQueue
@internal

Namespace

React\Promise\Internal

Code

public function enqueue($cancellable) : void {
    if (!\is_object($cancellable) || !\method_exists($cancellable, 'then') || !\method_exists($cancellable, 'cancel')) {
        return;
    }
    $length = \array_push($this->queue, $cancellable);
    if ($this->started && 1 === $length) {
        $this->drain();
    }
}

API Navigation

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