Skip to main content

spawn_blocking_background

Function spawn_blocking_background 

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

spawn_background for a blocking closure — runs it on a callback-pool worker at the default Medium band.