pub fn with_read_lock<T>(
    path: &Path,
    attempts: u32,
    cl: &mut dyn FnMut(&mut File) -> Result<T>
) -> Result<T>
Expand description

Opens the file and then calls with_read_lock_for_open_file to get the read lock.