Skip to main content

wait_with_timeout

Function wait_with_timeout 

Source
pub fn wait_with_timeout(child: Child, timeout: Duration) -> Result<Output>
Expand description

Wait for a child process with a timeout. Kills the process if it exceeds the limit. Returns the Output on success, or an error on timeout.