async-rs / async-rs/async-std

Implement Stream::size_hint method on stream utilities

Open
#953 4 comments 0 reactions 0 assignees View on GitHub
enhancement good first issue
Dominant language
Rust
Stars
4.1k
Forks
339
PR merge metrics
No merged PRs in 30d

Description

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.

related: https://github.com/rust-lang/futures-rs/pull/1853, https://github.com/rust-lang/rust/pull/81797

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.