[][src]Function async_spawner::spawn_blocking

pub fn spawn_blocking<F, T>(task: F) -> JoinHandle<T>

Notable traits for JoinHandle<T>

impl<T> Future for JoinHandle<T> type Output = T;
where
    F: FnOnce() -> T + Send + 'static,
    T: Send + 'static, 

Runs the provided closure on a thread, which can execute blocking tasks asynchronously.