[−][src]Function futures_cputask::run_task
pub fn run_task<R, F>(
fun: F
) -> Pin<Box<dyn Future<Output = R> + Send + Sync + 'static>> where
R: Sized + Send + Sync + 'static,
F: FnOnce() -> R + Send + 'static,
Runs a task in the global threadpool