Function deno_core::task::spawn_blocking

source ·
pub fn spawn_blocking<F: FnOnce() -> R + Send + 'static, R: Send + 'static>(
    f: F
) -> JoinHandle<R> 
Expand description

Equivalent to tokio::task::spawn_blocking. Currently a thin wrapper around the tokio API, but this may change in the future.