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

Breadcrumb

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

function TracingDriver::cancel

Overrides Driver::cancel

2 calls to TracingDriver::cancel()
TracingDriver::defer in vendor/revolt/event-loop/src/EventLoop/Driver/TracingDriver.php
Defer the execution of a callback.
TracingDriver::delay in vendor/revolt/event-loop/src/EventLoop/Driver/TracingDriver.php
Delay the execution of a callback.

File

vendor/revolt/event-loop/src/EventLoop/Driver/TracingDriver.php, line 134

Class

TracingDriver

Namespace

Revolt\EventLoop\Driver

Code

public function cancel(string $callbackId) : void {
    $this->driver
        ->cancel($callbackId);
    if (!isset($this->cancelTraces[$callbackId])) {
        $this->cancelTraces[$callbackId] = $this->formatStacktrace(\debug_backtrace(\DEBUG_BACKTRACE_IGNORE_ARGS));
    }
    unset($this->enabledCallbacks[$callbackId], $this->unreferencedCallbacks[$callbackId]);
}
RSS feed
Powered by Drupal