Skip to main content

thread_spawn

Function thread_spawn 

Source
pub fn thread_spawn(
    stack: usize,
    f: Box<dyn FnOnce() + Send + 'static>,
) -> Option<Thread>
Expand description

run f on a new thread with stack bytes of stack (0 = 1 MB) [plat_thread_create]