kumo_server_runtime

Function spawn_blocking_on

source
pub fn spawn_blocking_on<F, N, R>(
    name: N,
    func: F,
    runtime: &Handle,
) -> Result<JoinHandle<R>>
where F: FnOnce() -> R + Send + 'static, R: Send + 'static, N: AsRef<str>,
Expand description

Run a blocking function in the worker thread pool associated with the provided tokio runtime.