pub async fn wait_for(
output_rx: Receiver<OutputLine>,
target: &str,
pattern: Option<&str>,
use_regex: bool,
wait_exit: bool,
timeout: Duration,
check_exit: impl FnMut() -> Option<Option<i32>>,
) -> ResponseExpand description
Wait for a condition on a process’s output. Returns a Response indicating match, exit, or timeout.