Skip to main content

with_private_file_lock

Function with_private_file_lock 

Source
pub async fn with_private_file_lock<T, F>(
    path: &Path,
    operation: F,
) -> Result<T>
where T: Send + 'static, F: FnOnce() -> Result<T> + Send + 'static,
Expand description

Run a blocking operation while holding an exclusive private file lock.