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

Breadcrumb

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

function AbstractDriver::isEmpty

Return value

bool True if no enabled and referenced callbacks remain in the loop.

2 calls to AbstractDriver::isEmpty()
AbstractDriver::createLoopFiber in vendor/revolt/event-loop/src/EventLoop/Internal/AbstractDriver.php
AbstractDriver::tick in vendor/revolt/event-loop/src/EventLoop/Internal/AbstractDriver.php
Executes a single tick of the event loop.

File

vendor/revolt/event-loop/src/EventLoop/Internal/AbstractDriver.php, line 444

Class

AbstractDriver
Event loop driver which implements all basic operations to allow interoperability.

Namespace

Revolt\EventLoop\Internal

Code

private function isEmpty() : bool {
    foreach ($this->callbacks as $callback) {
        if ($callback->enabled && $callback->referenced) {
            return false;
        }
    }
    return true;
}

API Navigation

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