pub fn spawn<F, T>(self, f: F) -> std::io::Result<JoinHandle<T>>
    where
        F: FnOnce() -> T,
        F: Send + 'static,
        T: Send + 'static,
    {
        Ok(spawn_named(f, self.name, self.stack_size))
    }
/// Spawns a new thread by taking ownership of the Builder, and returns an `io::Result` to its `JoinHandle`.
Spawns a new thread by taking ownership of the Builder, and returns an `io::Result` to its `JoinHandle`.
Spawns a new thread by taking ownership of the Builder and returns an ` io :: Result ` to its ` JoinHandle ` .
pub fn spawn<F, T>(self, f: F) -> std::io::Result<JoinHandle<T>>
    where
        F: FnOnce() -> T,
        F: Send + 'static,
        T: Send + 'static,
    {
        Ok(spawn_named(f, self.name, self.stack_size))
    }
pub fn spawn < F , T > ( self , f : F ) -> std :: io :: Result < JoinHandle < T > > where F : FnOnce ( ) -> T , F : Send + ' static , T : Send + ' static , { Ok ( spawn_named ( f , self . name , self . stack_size ) ) }
Spawns a new thread by taking ownership of the Builder, and returns an `io::Result` to its `JoinHandle`.
Spawns a new thread by taking ownership of the Builder and returns an ` io :: Result ` to its ` JoinHandle ` .
self
f
F
self
f
F