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

Breadcrumb

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

function EvDriver::__destruct

File

vendor/revolt/event-loop/src/EventLoop/Driver/EvDriver.php, line 82

Class

EvDriver

Namespace

Revolt\EventLoop\Driver

Code

public function __destruct() {
    foreach ($this->events as $event) {
        
        /** @psalm-suppress all */
        if ($event !== null) {
            // Events may have been nulled in extension depending on destruct order.
            $event->stop();
        }
    }
    // We need to clear all references to events manually, see
    // https://bitbucket.org/osmanov/pecl-ev/issues/31/segfault-in-ev_timer_stop
    $this->events = [];
}

API Navigation

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