pub fn with_issues_lock<R, F>(path: &Path, f: F) -> Result<R>Expand description
Serialize every read-modify-write cycle on one issues.org.
Without this, parallel creates race on the temporary file rename and lose updates: the last writer wins and peers see a vanished temporary.
ยงErrors
Returns an error if the lock file cannot be created or acquired, or if f
itself fails.