[−][src]Function futures_cputask::run_task_in_pool
pub fn run_task_in_pool<R, F, T>(
fun: F,
thread_pool: &T
) -> Pin<Box<dyn Future<Output = R> + Send + Sync + 'static>> where
R: Sized + Send + Sync + 'static,
F: FnOnce() -> R + Send + 'static,
T: AsyncThreadPool,
Runs a task in an asynchronous threadpool