Add opposite of stream_reader #2705
Labels
A-tokio
Area: The main tokio crate
A-tokio-util
Area: The tokio-util crate
C-feature-accepted
Category: A feature request that has been accepted pending implementation.
C-feature-request
Category: A feature request.
M-codec
Module: tokio-util/codec
M-io
Module: tokio/io
The
tokio::io::stream_reader
adapter allows you to convert aStream<Item=Result<Bytes, Error>>
into anAsyncRead
. I would like to provide an adapter for the opposite conversion as well.It is currently already possible to do this using
from
tokio-util
, but this is such a common operation that I think we should provide a dedicated adapter intokio::io
as well.Name suggestion:
stream_chunker
The text was updated successfully, but these errors were encountered: