Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Transform a consumer into a sequence of messages #5

Open
Baptouuuu opened this issue Jan 25, 2024 · 0 comments
Open

Transform a consumer into a sequence of messages #5

Baptouuuu opened this issue Jan 25, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@Baptouuuu
Copy link
Member

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.

@Baptouuuu Baptouuuu added the enhancement New feature or request label Jan 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant