pub fn spawn_with<F: FnOnce() + Send + 'static>( f: F, stack: &'static mut [u8], priority: i32, ) -> Thread
Spawns a new thread that runs f, using the provided static stack buffer.
f
stack