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

Breadcrumb

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

function EventDriver::cancel

Overrides AbstractDriver::cancel

File

vendor/revolt/event-loop/src/EventLoop/Driver/EventDriver.php, line 64

Class

EventDriver

Namespace

Revolt\EventLoop\Driver

Code

public function cancel(string $callbackId) : void {
    parent::cancel($callbackId);
    if (isset($this->events[$callbackId])) {
        $this->events[$callbackId]
            ->free();
        unset($this->events[$callbackId]);
    }
}
RSS feed
Powered by Drupal