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
tokio_stream::StreamExt::map_while
std recently stabilized map_while:
https://doc.rust-lang.org/stable/std/iter/trait.Iterator.html#method.map_while
Makes sense to port it to StreamExt as well for parity. Here's a real-world use-case where this would be useful:
StreamExt
https://github.com/near/nearcore/blob/87685a454ec7f8971558e2b128aa294b8ac37694/chain/network/src/peer_manager/peer_manager_actor.rs#L797-L804
The text was updated successfully, but these errors were encountered:
PeerActorManager
IncomingCrutch
tokio-stream: add StreamExt::map_while`
StreamExt::map_while
17dad4f
Fixes tokio-rs#4337 Rust 1.57 stabilized the `Iterator::map_while` API. This PR adds the same functionality to the `StreamExt` trait, to keep parity.
5579e9c
tokio-stream: add StreamExt::map_while (#4351)
fb35c83
Fixes #4337 Rust 1.57 stabilized the `Iterator::map_while` API. This PR adds the same functionality to the `StreamExt` trait, to keep parity.
Successfully merging a pull request may close this issue.
std recently stabilized map_while:
https://doc.rust-lang.org/stable/std/iter/trait.Iterator.html#method.map_while
Makes sense to port it to
StreamExt
as well for parity. Here's a real-world use-case where this would be useful:https://github.com/near/nearcore/blob/87685a454ec7f8971558e2b128aa294b8ac37694/chain/network/src/peer_manager/peer_manager_actor.rs#L797-L804
The text was updated successfully, but these errors were encountered: