You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Most of async-std's stream utilities were written before Stream::size_hint was released and do not implement Stream::size_hint method. This means that async-std's stream utilities may be a bit inefficient than other crates such as futures, tokio-stream, futures-lite, which provide similar utilities.
Hey guys I wanted to know if on the size_hint method in the stream trait on the crate, if I should give it a default implementation. Something like below, a default size_hint is implemented in the stream module in the standard library.
Most of async-std's stream utilities were written before
Stream::size_hint
was released and do not implementStream::size_hint
method. This means that async-std's stream utilities may be a bit inefficient than other crates such as futures, tokio-stream, futures-lite, which provide similar utilities.related: rust-lang/futures-rs#1853, rust-lang/rust#81797
The text was updated successfully, but these errors were encountered: