Skip to content

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.

2 participants