cuprate_helper::asynch

Function rayon_spawn_async

Source
pub async fn rayon_spawn_async<F, R>(f: F) -> R
where F: FnOnce() -> R + Send + 'static, R: Send + 'static,
Expand description

Spawns a task for the rayon thread pool and awaits the result without blocking the async runtime.