pub async fn with_file_lock<T>(path: &Path, work: impl Future<Output = T>) -> T
Runs work once every earlier mutation of the same file (by real path) has finished.
work