stdx::thread

Function spawn

source
pub fn spawn<F, T>(intent: ThreadIntent, f: F) -> JoinHandle<T>
where F: FnOnce() -> T + Send + 'static, T: Send + 'static,