Skip to content

Support another EventLoop backend #152

Description

@Gemorroj

https://pecl.php.net/package/ev
http://docs.php.net/ev
any plans/ideas about implement adapter for this librarty?

Activity

  1. WyriHaximus commented on Feb 23, 2018

    @WyriHaximus
    Member

    Yes it is in the works for 0.5: #148 and there is also an event-loop in the works for ext-uv #112

  2. Gemorroj commented on Feb 23, 2018

    @Gemorroj
    Author

    thanks!

  3. kelunik commented on Feb 23, 2018

    @kelunik
    Contributor

    You can also use amphp/react-adapter + amphp/amp, which will give you an ev based implementation – if ev is installed – that is fully compatible with ReactPHP's LoopInterface.

    $driver = (new Amp\Loop\DriverFactory)->create();
    $loop = new Amp\ReactAdapter\ReactAdapter($driver);
    
    // $loop is now a ReactPHP compatible driver based on ext-ev

    If you don't want the automatic driver selection based on the available extensions, you can also instantiate a driver on your own using $driver = new Amp\Loop\EvDriver;.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions