async-stream icon indicating copy to clipboard operation
async-stream copied to clipboard

`stream!` vs `try_stream!`

Open leif-hesperides opened this issue 7 months ago • 0 comments

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.

leif-hesperides avatar Apr 24 '25 00:04 leif-hesperides