pub fn spawn_blocking_on<F, N, R>(
name: N,
func: F,
runtime: &Handle,
) -> Result<JoinHandle<R>>
Expand description
Run a blocking function in the worker thread pool associated with the provided tokio runtime.
pub fn spawn_blocking_on<F, N, R>(
name: N,
func: F,
runtime: &Handle,
) -> Result<JoinHandle<R>>
Run a blocking function in the worker thread pool associated with the provided tokio runtime.