[−][src]Function pasts::spawn_blocking
pub fn spawn_blocking<F, R>(function: F) -> impl Future<Output = R> where
F: FnOnce() -> R,
F: Send + 'static,
R: Send + 'static,
std feature required. Construct a future from a blocking function to be run on a dynamically sized thread pool.