Skip to main content

assert_active

Function assert_active 

Source
pub fn assert_active(active: &Arc<AtomicBool>) -> bool
Expand description

Staleness guard: true while the owning session is still active. Called before dispatching an extension event or driving an extension tool so a stale registry (from a swapped-out session) can’t act. Mirrors pi’s ExtensionRuntimeState active check.