Function spawn_cpu

Source
pub fn spawn_cpu<F>(func: F)
where F: FnOnce() + Send + 'static,
Expand description

Spawns a CPU thread to run a computing-heavy task.