[−][src]Function async_spawner::spawn_blocking
pub fn spawn_blocking<F, T>(task: F) -> JoinHandle<T>ⓘwhereNotable traits for JoinHandle<T>
impl<T> Future for JoinHandle<T> type Output = T;
F: FnOnce() -> T + Send + 'static,
T: Send + 'static,
Runs the provided closure on a thread, which can execute blocking tasks asynchronously.