pub fn spawn<F, T>(f: F) -> JoinHandle<T>
where
    F: FnOnce() -> T,
    F: Send + 'static,
    T: Send + 'static,
{
    spawn_named(f, None, None)
}
/// 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.
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.
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>
where
    F: FnOnce() -> T,
    F: Send + 'static,
    T: Send + 'static,
{
    spawn_named(f, None, None)
}
pub fn spawn < F , T > ( f : F ) -> JoinHandle < T > where F : FnOnce ( ) -> T , F : Send + ' static , T : Send + ' static , { spawn_named ( f , None , None ) }
Spawn a new thread, returning a JoinHandle for it.
Spawn a new thread returning a JoinHandle for it .
f
F
f
F