Skip to main content

scope_placement

Function scope_placement 

Source
pub fn scope_placement<F: Future>(
    placement: SubtaskPlacement,
    inner: F,
) -> impl Future<Output = F::Output>
Expand description

Run inner with placement installed for every subtask its execution tree creates. The override rides [AmbientExecutionScope], so it survives the awaits and thread migrations inside inner.