pub async fn spawn_blocking<F, R>(
runtime: Runtime,
f: F,
) -> Result<R, SpawnBlockingError>Expand description
Runs the given closure on a thread where blocking is acceptable.
ยงErrors
See SpawnBlockingError for details.
pub async fn spawn_blocking<F, R>(
runtime: Runtime,
f: F,
) -> Result<R, SpawnBlockingError>Runs the given closure on a thread where blocking is acceptable.
See SpawnBlockingError for details.