Skip to main content

wait_for

Function wait_for 

Source
pub async fn wait_for(
    output_rx: Receiver<OutputLine>,
    target: &str,
    pattern: Option<&str>,
    use_regex: bool,
    wait_exit: bool,
    timeout: Duration,
    handle: PmHandle,
) -> Response
Expand description

Wait for a condition on a process’s output. Returns a Response indicating match, exit, or timeout.