cargo_test_support

Function threaded_timeout

source
pub fn threaded_timeout<F, R>(n: u32, f: F) -> R
where F: FnOnce() -> R + Send + 'static, R: Send + 'static,
Expand description

Helper that runs some function, and waits up to n tenths of a second for it to finish.