pub async fn try_acquire(
map: &AgentLockMap,
dir: &Path,
key: &str,
) -> Option<AgentLock>Expand description
Acquire an agent lock NON-BLOCKING. Returns None if the key is busy
in-process (another task holds the guard) OR held cross-process. On the
cross-process miss the in-process guard is dropped before returning, so it
never lingers.