MCPcopy Create free account
hub / github.com/Work-Fisher/code-claw / env_lock

Function env_lock

claw-code/rust/crates/api/src/client.rs:621–626  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

619 use crate::types::{ContentBlockDelta, MessageRequest};
620
621 fn env_lock() -> std::sync::MutexGuard<'static, ()> {
622 static LOCK: OnceLock<Mutex<()>> = OnceLock::new();
623 LOCK.get_or_init(|| Mutex::new(()))
624 .lock()
625 .expect("env lock")
626 }
627
628 fn temp_config_home() -> std::path::PathBuf {
629 std::env::temp_dir().join(format!(

Calls 1

expectMethod · 0.80