pub fn threaded_timeout<F, R>(n: u32, f: F) -> Rwhere F: FnOnce() -> R + Send + 'static, R: Send + 'static,
Helper that runs some function, and waits up to n tenths of a second for it to finish.
n