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

Breadcrumb

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

function EventLoop::disable

Disable a callback immediately.

A callback MUST be disabled immediately, e.g. if a deferred callback disables another deferred callback, the second deferred callback isn't executed in this tick.

Disabling a callback MUST NOT invalidate the callback. Calling this function MUST NOT fail, even if passed an invalid callback identifier.

Parameters

string $callbackId The callback identifier.:

Return value

string The callback identifier.

File

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

Class

EventLoop
Accessor to allow global access to the event loop.

Namespace

Revolt

Code

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

API Navigation

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