Skip to content

Emit events on blocking operations #176

Description

@EligiusSantori

Please propagate DuplexStreamInterface::on('data') as normal event not just a promise.
Promises are only fit when you need to do a single call.
When you need a BLPOP/XREAD/XREADGROUP-based endless reading loop, event is a must have.
I think you can use command name as an event name so user will be able to choose what to handle.

Activity

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

    questionFurther information is requested

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions