pub fn locked<T>(
root: &AppRoot,
f: impl FnOnce(&Config) -> Result<T>,
) -> Result<T>Expand description
Reads the configuration under the same exclusive lock as update (spec §18, design §6.4). It does
not create the root directory and does not sweep temp files: those are write-path side effects.