Skip to main content

run_with_timeout

Function run_with_timeout 

Source
pub fn run_with_timeout(
    cmd: Command,
    timeout: Duration,
) -> Result<TimeoutResult<Output>>
Expand description

Spawn a command with piped stdout/stderr and run it to completion bounded by timeout.