lib/Loop.php
public static function run(callable $callback = null)
    {
        if ($callback) {
            self::$driver->defer($callback);
        }

        self::$driver->run();
    }
public static function run(callable $callback = null)
    {
        if ($callback) {
            self::$driver->defer($callback);
        }

        self::$driver->run();
    }
public static function run ( callable $ callback = null ) { if ( $ callback ) { self :: $ driver -> defer ( $ callback ) ; } self :: $ driver -> run ( ) ; }
Run the event loop and optionally execute a callback within the scope of it.

The loop MUST continue to run until it is either stopped explicitly, no referenced watchers exist anymore, or an
exception is thrown that cannot be handled. Exceptions that cannot be handled are exceptions thrown from an
error handler or exceptions that would be passed to an error handler but none exists to handle them.

@param callable|null $callback The callback to execute.

@return void
Run the event loop and optionally execute a callback within the scope of it .