pub fn spawn_blocking<Function, Output, Name, NameClosure>(
_nc: NameClosure,
function: Function,
) -> JoinHandle<Output> ⓘAvailable on crate feature
async only.Expand description
Runs the provided closure with a name on a thread where blocking is acceptable.
See tokio::task::spawn_blocking and the module docs for more
information.