Function zebra_consensus::primitives::spawn_fifo
source ยท pub async fn spawn_fifo<E: 'static + Error + Sync + Send, F: 'static + FnOnce() -> Result<(), E> + Send>(
f: F,
) -> Result<Result<(), E>, RecvError>
Expand description
Fires off a task into the Rayon threadpool and awaits the result through a oneshot channel.