Function spawn_blocking

Source
pub fn spawn_blocking<F, R>(f: F) -> JoinHandle<R>
where F: FnOnce() -> R + Send + 'static, R: Send + 'static,
Expand description

Spawn blocking is the same as spawn for pure threaded usage.