Skip to main content

spawn_blocking

Function spawn_blocking 

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

Runs a blocking closure on the global runtime’s blocking pool.