Function cargo_test_support::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.