the/loop

Provides an event loop backed by the Amphp event loop.

1.0.2 2019-04-03 14:07 UTC

This package is auto-updated.

Last update: 2024-11-29 05:38:48 UTC


README

Provides access to an event loop. Backed by Amphp event loop and therefore compatible with the Amphp libraries.

Usage

To access the event loop, simply do this:

\The\Loop::run(function() {});

Composer Provides

The framework itself can provide the The\Loop by declaring it in the composer.json file:

{
    "provide": [ 'the/loop' ]
}

and then aliasing your class into The\Loop

namespace The {

    class_alias( \Amphp\Loop::class, Loop::class );

}