spawn_fifo

Function spawn_fifo 

Source
pub async fn spawn_fifo<T: 'static + Send, F: 'static + FnOnce() -> T + Send>(
    f: F,
) -> Result<T, RecvError>
Expand description

Fires off a task into the Rayon threadpool and awaits the result through a oneshot channel.