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

Add ReceiveMessages #143

Closed
Thomasdezeeuw opened this issue Feb 2, 2019 · 2 comments
Closed

Add ReceiveMessages #143

Thomasdezeeuw opened this issue Feb 2, 2019 · 2 comments
Labels
enhancement An improvement of the API. priority:low Low priority issue.

Comments

@Thomasdezeeuw
Copy link
Owner

ReceiveMessages would implement Stream<Item = M>, created by calling ActorContext.receive_many.

@Thomasdezeeuw Thomasdezeeuw added enhancement An improvement of the API. priority:low Low priority issue. labels Feb 2, 2019
@Thomasdezeeuw

This comment has been minimized.

@Thomasdezeeuw
Copy link
Owner Author

Currently don't see the benefit over while let Ok(message) = ctx.receive_next().await { /* ... */ }. Might be worth reconsidering once the Stream trait becomes a bit more useful in std lib.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement An improvement of the API. priority:low Low priority issue.
Projects
None yet
Development

No branches or pull requests

1 participant