Skip to main content

acquire

Function acquire 

Source
pub fn acquire(key: &str) -> Acquired
Expand description

Take the checkout’s lock, atomically through O_EXCL. A lock whose owner is provably gone — or, where procfs cannot judge, older than the grace period — is removed and the take retried once.