Skip to main content

a

Macro a 

Source
macro_rules! a {
    ($error_id:expr, $duration:expr, $($cmd:tt)*) => { ... };
}
Expand description

Execute a shell command with a timeout

§Example

use std::time::Duration;
let output = a!("test-003", Duration::from_secs(5), "sleep 2 && echo done")?;