Skip to main content

wait_with_timeout

Function wait_with_timeout 

Source
pub fn wait_with_timeout(child: &mut Child, timeout: Duration) -> WaitOutcome
Expand description

Polls child for completion, killing it if it hasn’t exited within timeout. Unlike a raw blocking .wait()/.status(), this guarantees the caller gets control back within roughly timeout even if the child itself is stuck on an unresponsive mount point.