Skip to main content

drain

Function drain 

Source
pub fn drain(
    input: impl Read + Send + 'static,
) -> (Receiver<Vec<u8>>, JoinHandle<()>)
Expand description

Continuously drain a pipe before waiting for the next protocol event.