Function agnostic_async_executor::spawn_blocking[][src]

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

Notable traits for JoinHandle<T>

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

Runs the provided closure on the global executor, and when possible, it does it in a way that doesn't block concurrent tasks.