pub async fn collect_output_until_exit(
output_rx: Receiver<Vec<u8>>,
exit_rx: Receiver<i32>,
timeout_ms: u64,
) -> (Vec<u8>, i32)Expand description
Collect output from a process until it exits or times out.
This is useful for tests and simple use cases where you want all output.