Skip to main content

with_scope_stack

Function with_scope_stack 

Source
pub fn with_scope_stack<T>(handle: ScopeStackHandle, f: impl FnOnce() -> T) -> T
Expand description

Run a synchronous callback with handle as the visible scope stack.

This override takes precedence over task-local and thread-local stacks for the duration of the callback and is restored even when the callback panics.