Function spawn_scoped

Source
pub fn spawn_scoped<'scope, 'env, D, F, T>(
    nid: &NodeId,
    label: D,
    scope: &'scope Scope<'scope, 'env>,
    f: F,
) -> ScopedJoinHandle<'scope, T>
where D: Display, F: FnOnce() -> T + Send + 'scope, T: Send + 'scope,
Expand description

Spawn a scoped OS thread.