pub fn spawn<F, T>(f: F) -> JoinHandle<T>
Expand description
Spawn a new thread, returning a JoinHandle for it.
The join handle can be used (via the join
method) to block until the child thread has
finished.
pub fn spawn<F, T>(f: F) -> JoinHandle<T>
Spawn a new thread, returning a JoinHandle for it.
The join handle can be used (via the join
method) to block until the child thread has
finished.