async_io_bufpool

Function pooled_read

source
pub async fn pooled_read(rdr: impl AsyncRead + Unpin) -> Result<Bytes, Error>
Expand description

Read an async reader into a buffer, while not consuming any memory before the read unblocks.