Crate futures_bufio [] [src]

This library provides buffered IO with futures on top of a threadpool for blocking IO.

This crate is most useful when readers or writers do not or cannot block, but do put threads to sleep. For example, files can always read or write, but their reads or writes are slow.

This crate uses the nightly-only feature conservative_impl_trait to eliminate box allocations around futures while still making the return types semi-readable.



Adds buffering to any reader, similar to the standard BufReader, but performs non-buffer reads in a thread pool.


Adds buffering to any writer, similar to the standard BufWriter, but performs non-buffer writes in a thread pool.