pub async fn file_lock(path: &Path) -> OwnedMutexGuard<()>Expand description
pi’s withFileMutationQueue for work outside the host: waits until every
earlier mutation of the same file (by real path) has finished, and holds
the file until the guard drops.