We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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::map_while
The proposal to add a similar method from std map_while for stream. This would be convenient to reduce this:
map_while
stream.map(|x| u32::checked_div(16, x)) .take_while(|x| future::ready(x.is_some())) .map(|x| x.unwrap())
to this:
stream.map_while(|x| future::ready(u32::checked_div(16, x)))
The text was updated successfully, but these errors were encountered:
No branches or pull requests
The proposal to add a similar method from std
map_while
for stream.This would be convenient to reduce this:
to this:
The text was updated successfully, but these errors were encountered: