pub fn drain( input: impl Read + Send + 'static, ) -> (Receiver<Vec<u8>>, JoinHandle<()>)
Continuously drain a pipe before waiting for the next protocol event.