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