Skip to main content

spawn

Function spawn 

Source
pub fn spawn<F: FnOnce() + Send + 'static>(
    f: F,
    stack_size: usize,
    priority: i32,
) -> Thread
Expand description

Spawns a new thread that runs f, allocating a dynamic stack of stack_size bytes.