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

Document cancel safety of StreamExt::next #2701

Open
bonsairobo opened this issue Jan 31, 2023 · 1 comment · May be fixed by #2896
Open

Document cancel safety of StreamExt::next #2701

bonsairobo opened this issue Jan 31, 2023 · 1 comment · May be fixed by #2896
Labels

Comments

@bonsairobo
Copy link

Here: https://docs.rs/futures/latest/futures/stream/trait.StreamExt.html#method.next

And the equivalent tokio docs: https://docs.rs/tokio-stream/latest/tokio_stream/trait.StreamExt.html#method.next

I think it's critical that users know if stream items can be accidentally dropped if the future is cancelled.

@taiki-e taiki-e added the docs label Jan 31, 2023
@taiki-e
Copy link
Member

taiki-e commented Jan 31, 2023

I would accept a PR to document this.

@akonradi-signal akonradi-signal linked a pull request Nov 13, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants