-
-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
stream: add StreamExt::skip #2204
Conversation
skip version of take Refs: tokio-rs#2104
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The other stream combinator types are currently not exported publicly.
Did you mean to include that |
No, sorry. I will be working on that next. Also does anyone know why rustfmt is failing? |
It wants a semicolon on your return, and to remove the comma after the |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks great 👍 thanks!
This PR introduces StreamExt::skip as described in #2104. Skip will create a new stream the skips the n first elements of the underlaying stream.