Skip to main content

lock_within_file

Function lock_within_file 

Source
pub fn lock_within_file(file: &File, budget: Duration) -> Result<bool>
Expand description

Bounded retry of try_lock_once; true when acquired within budget.

Backoff is exponential with jitter, starting at ~2 ms and capped at ~50 ms.