pub fn spawn<F: FnOnce() + Send + 'static>( f: F, stack_size: usize, priority: i32, ) -> Thread
Spawns a new thread that runs f, allocating a dynamic stack of stack_size bytes.
f
stack_size