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

Implement try_take_while. #2212

Merged
merged 3 commits into from Sep 20, 2020
Merged

Conversation

bittrance
Copy link
Contributor

Implementation of try_take_while, symmetric to try_skip_while. I found that I needed it because it works as a variant of try_for_each which allows termination of the stream, effectively working as an break-able fallible iteration over the stream.

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! This seems reasonable to me.

@taiki-e taiki-e merged commit 263dbc6 into rust-lang:master Sep 20, 2020
@taiki-e taiki-e mentioned this pull request Oct 5, 2020
@taiki-e taiki-e added the A-stream Area: futures::stream label Jan 11, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-stream Area: futures::stream
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants