Function cargo_test_support::threaded_timeout
source · pub fn threaded_timeout<F, R>(n: u32, f: F) -> Rwhere
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.