subspace_farmer::utils

Function tokio_rayon_spawn_handler

source
pub fn tokio_rayon_spawn_handler() -> impl FnMut(ThreadBuilder) -> Result<()>
Expand description

This function is supposed to be used with [rayon::ThreadPoolBuilder::spawn_handler()] to inherit current tokio runtime.