Skip to main content

set_thread_scope_stack

Function set_thread_scope_stack 

Source
pub fn set_thread_scope_stack(handle: ScopeStackHandle)
Expand description

Install an explicit scope stack for the current thread.

This replaces the thread-local scope stack handle and marks the current thread as explicitly scope-aware for later propagation checks.

§Parameters

  • handle: Scope stack handle to install for the current thread.

§Returns

().

§Notes

Use this when propagating an existing scope stack into worker threads.