Skip to content

stream! vs try_stream! #116

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

Open
leif-hesperides opened this issue Apr 24, 2025 · 0 comments
Open

stream! vs try_stream! #116

leif-hesperides opened this issue Apr 24, 2025 · 0 comments

Comments

@leif-hesperides
Copy link

leif-hesperides commented Apr 24, 2025

From https://github.com/tokio-rs/async-stream/blob/7f9ef66647e4cf65340b9971219031a4b06c499b/async-stream-impl/src/lib.rs it seems that the only difference between stream! and try_stream! is that try_stream! wraps yielded items in an Ok. Is this true?

If so, adding a line saying so to the documentation might help avoid misunderstandings like #81.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant