ambient_scope_active

Function ambient_scope_active 

Source
pub fn ambient_scope_active() -> bool
Expand description

Whether this thread runs inside any lexical resource scope: an execution account, a source stop, a terminal domain or (retained builds) an owned stop observer. Work inside one can be refused or degraded by that scope’s allowance, cancellation or earlier stop, so its output is not a function of its inputs alone.