Skip to main content

scope

Function scope 

Source
pub fn scope<T: Task, R>(
    task: T,
    run: impl for<'scope> FnOnce(Join<'scope, T::Output>) -> R,
) -> Result<R, Start>
Expand description

Lends the worker’s join authority to the local callback.