Skip to content

Transform a consumer into a sequence of messages #5

@Baptouuuu

Description

@Baptouuuu

For the rebuild of Witness, where the mailbox is essentially a sequence of messages, it may be interesting to add a transformation to the Client to consume a queue as a Sequence.

The API may look like $client->consume('queue')->toSequence().

The drawback of this approach is that in case of an error it can only throw exceptions.

For now this is just an idea, more work needs to happen on Witness before trying to implement this issue.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions