pub(super) fn lock_file(
path: &Path,
wait: Duration,
) -> Option<CrossProcessGuard>Expand description
Take the lock at path, polling until wait has passed. None when it
couldn’t be taken: another process held it the whole time, or the file
couldn’t be opened.