Skip to main content

create_scope_stack

Function create_scope_stack 

Source
pub fn create_scope_stack() -> ScopeStackHandle
Expand description

Create a new scope stack handle with an implicit root scope.

The returned handle wraps a freshly initialized ScopeStack inside an Arc and RwLock so it can be shared across async tasks or threads.

§Returns

A new ScopeStackHandle containing exactly one implicit root scope.

§Notes

The root scope is always present and cannot be removed.