Skip to main content

with_file_lock

Function with_file_lock 

Source
pub async fn with_file_lock<T>(path: &Path, work: impl Future<Output = T>) -> T
Expand description

Runs work once every earlier mutation of the same file (by real path) has finished.