Function spawn

Source
pub fn spawn<T>(future: T) -> JoinHandle<T::Output>
where T: Future + Send + 'static, T::Output: Send + 'static,
Expand description

Spawn new thread