Skip to main content

spawn_halted

Function spawn_halted 

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

Like spawn, but the thread is created in a halted state and must be started with Thread::start.