spawn

Function spawn 

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

Spawns a new thread, returning a JoinHandle for it.