Skip to main content

ambient_gate

Function ambient_gate 

Source
pub async fn ambient_gate(config_dir: Option<&str>) -> AmbientGuard
Expand description

Wait before an ambient CLI runs on config_dir (its CLAUDE_CONFIG_DIR) while a spawn on it is refreshing the expired token. No dir, or a blank one: the call has none of its own to protect.