Skip to main content

refresh_legacy_ambient_capabilities

Function refresh_legacy_ambient_capabilities 

Source
pub fn refresh_legacy_ambient_capabilities() -> bool
Expand description

Re-read the legacy-bridge flag from the process environment and update the cached value, returning the fresh result.

Only needed by code that mutates HARN_LEGACY_AMBIENT_CAPABILITIES inside the running process — in practice, tests. Call it after every set_var/remove_var of the flag so later reads observe the change.