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

Breadcrumb

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

function EventLoop::cancel

Cancel a callback.

This will detach the event loop from all resources that are associated to the callback. After this operation the callback is permanently invalid. Calling this function MUST NOT fail, even if passed an invalid identifier.

Parameters

string $callbackId The callback identifier.:

File

vendor/revolt/event-loop/src/EventLoop.php, line 259

Class

EventLoop
Accessor to allow global access to the event loop.

Namespace

Revolt

Code

public static function cancel(string $callbackId) : void {
    self::getDriver()->cancel($callbackId);
}

API Navigation

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