Skip to main content

spawn_with_stack

Function spawn_with_stack 

Source
pub fn spawn_with_stack<F>(f: F, stack_size: usize)
where F: FnOnce() + Send + 'static,
Expand description

Like spawn, with an explicit stack size in bytes.

Bare metal: exactly the reserved PSP stack. POSIX fibers: the fiber stack. Win32: the OS thread’s stack reservation.

§Panics

See spawn.