Function agnostic_async_executor::spawn_blocking [−][src]
pub fn spawn_blocking<F, T>(task: F) -> JoinHandle<T>ⓘwhereNotable traits for JoinHandle<T>
impl<T: 'static> Future for JoinHandle<T> type Output = T;
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.