cargo::util::flock

Function try_acquire

source
fn try_acquire(
    path: &Path,
    lock_try: &dyn Fn() -> Result<()>,
) -> CargoResult<bool>