pub fn spawn<F, T>(f: F) -> JoinHandle<T>where F: FnOnce() -> T + Send + 'static, T: Send + 'static,
Spawns a new thread with a failure guard.
f
A JoinHandle for the spawned thread.
JoinHandle
F
T