Skip to main content

scope

Function scope 

Source
pub fn scope<F: Future>(
    ctx: CallContext,
    fut: F,
) -> impl Future<Output = F::Output>
Expand description

Run fut inside ctx: how a task a method spawns carries its caller.