[−]Function bastion::io::prelude::spawn_blocking
pub fn spawn_blocking<F, T>(task: F) -> JoinHandle<T>ⓘwhereImportant traits for JoinHandle<R>
impl<R> Future for JoinHandle<R> where
R: 'static + Send, type Output = R;
F: FnOnce() -> T + Send + 'static,
T: Send + 'static,
spawn_blocking
will use the global executor instance, which is determined by the cargo features,
to spawn the given blocking task.