Function tokio_rayon::spawn_fifo_async [−][src]
pub async fn spawn_fifo_async<F, R>(func: F) -> Result<R, RecvError> where
F: FnOnce() -> R + Send + 'static,
R: Send + 'static,
Asynchronous wrapper around Rayon’s spawn_fifo
.
Runs a function on the global Rayon thread pool with FIFO priority, produciing a future that resolves with the function’s return value.
Errors
Forwards Tokio’s RecvError
, i.e. if the channel is closed.