pooled_read

Function pooled_read 

Source
pub async fn pooled_read(
    rdr: impl AsyncRead,
    limit: usize,
) -> Result<Option<Bytes>, Error>
Expand description

Read an async reader into a buffer. This is done in a memory-efficient way, avoiding consuming any memory before the read unblocks.

An empty return value indicates EOF.