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

StreamExt::All / StreamExt::Any #2460

Merged
merged 4 commits into from Jul 7, 2021
Merged

StreamExt::All / StreamExt::Any #2460

merged 4 commits into from Jul 7, 2021

Conversation

barvirm
Copy link
Contributor

@barvirm barvirm commented Jun 26, 2021

Primitive implementation of All and Any predicates over the stream. Most of the code is reused from Fold implementation.
I was thinking about reusing Fold inside All and Any, but we lose the possibility of an early exit.

Copy link
Member

@taiki-e taiki-e left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@taiki-e taiki-e added 0.3-backport: pending The maintainer accepted to backport this to the 0.3 branch, but backport has not been done yet. A-stream Area: futures::stream labels Jul 7, 2021
@taiki-e taiki-e merged commit 5cba414 into rust-lang:master Jul 7, 2021
taiki-e pushed a commit that referenced this pull request Jul 23, 2021
Closes #2458

Co-authored-by: Marek Barvir <barvir@cadwork.cz>
@taiki-e taiki-e mentioned this pull request Jul 23, 2021
@taiki-e taiki-e added 0.3-backport: completed and removed 0.3-backport: pending The maintainer accepted to backport this to the 0.3 branch, but backport has not been done yet. labels Jul 23, 2021
taiki-e pushed a commit that referenced this pull request Jul 23, 2021
Closes #2458

Co-authored-by: Marek Barvir <barvir@cadwork.cz>
@taiki-e taiki-e mentioned this pull request Jul 23, 2021
@taiki-e
Copy link
Member

taiki-e commented Jul 23, 2021

Published in 0.3.16.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants