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

Breadcrumb

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

function EventLoop::run

Run the event loop.

This function may only be called from {main}, that is, not within a fiber.

Libraries should use the {@link Suspension} API instead of calling this method.

This method will not return until the event loop does not contain any pending, referenced callbacks anymore.

File

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

Class

EventLoop
Accessor to allow global access to the event loop.

Namespace

Revolt

Code

public static function run() : void {
    self::getDriver()->run();
}

API Navigation

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