Function acquire_lock

Source
pub fn acquire_lock(
    lock_opts: LockOptions<'_>,
    lock_timeout: Duration,
) -> Result<FileLock, Error>
Expand description

Acquires the provided lock with a specified timeout