Function spawn

Source
pub fn spawn<D, F, T>(nid: &NodeId, label: D, f: F) -> JoinHandle<T>
where D: Display, F: FnOnce() -> T + Send + 'static, T: Send + 'static,
Expand description

Spawn an OS thread.