pub fn write_queue<W, M>(
    writer: W
) -> (Sender<M>, impl Future<Output = Result<(), Error>>) where
    W: AsyncWrite + Unpin,
    M: AsOutputSegments
Expand description

Creates a new WriteQueue that wraps the given writer.