Skip to main content

spawn_thread

Function spawn_thread 

Source
pub fn spawn_thread<F, R>(cb: F) -> GCAwareJoinHandle<R>
where F: 'static + FnOnce() -> R + Send + UnwindSafe, R: 'static + Send,
Expand description

Spawns new thread and registers it with GC.