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