Function with_file_lock_async

Source
pub async fn with_file_lock_async<F, Fut, R>(
    file_path: &Path,
    operation: F,
) -> Result<R>
where F: FnOnce() -> Fut, Fut: Future<Output = Result<R>>,
Expand description

Execute an async operation with file locking protection