src/Providers/AmiServiceProvider.php
protected function registerEventLoop()
    {
        $this->app->singleton(LoopInterface::class, function () {
            return new StreamSelectLoop();
        });
        $this->app->alias(LoopInterface::class, 'ami.eventloop');
    }
protected function registerEventLoop()
    {
        $this->app->singleton(LoopInterface::class, function () {
            return new StreamSelectLoop();
        });
        $this->app->alias(LoopInterface::class, 'ami.eventloop');
    }
protected function registerEventLoop ( ) { $ this -> app -> singleton ( LoopInterface :: class , function ( ) { return new StreamSelectLoop ( ) ; } ) ; $ this -> app -> alias ( LoopInterface :: class , 'ami.eventloop' ) ; }
Register event loop.
Register event loop .