Skip to main content

try_lock

Function try_lock 

Source
pub fn try_lock(gate: &TreeGate) -> Option<Lock>
Expand description

Take gate’s lock without waiting. None when another run holds it (or the lock file cannot be made) — which the caller reads as cold: a commit never waits on a warm-up.