Skip to main content

change_people

Function change_people 

Source
pub fn change_people(
    path: &Path,
    change: impl FnOnce(&mut People),
) -> Result<People, String>
Expand description

The list changed under its lock, read again first: what the sharing brought meanwhile stays. A file that does not read is left alone, an error.