pub fn recv_until(io: &mut dyn Io, done: impl Fn(&[u8]) -> bool) -> Vec<u8> ⓘ
Read from the device side until done holds for everything read; panics after WAIT, and at once when the host closed the connection for good.
done
WAIT