Skip to main content

spawn

Function spawn 

Source
pub fn spawn<F, T>(body: F) -> JoinHandle<T>
where F: FnOnce() -> T + Send + 'static, T: Send + 'static,
Expand description

std::thread::spawn with RUNTIME_STACK_SIZE.

Panics if the OS cannot create the thread, as std::thread::spawn does.