Skip to content

Function: acquireFileLock()

acquireFileLock(key, options?): Promise<FileLockLease>

Acquire a cross-process lock and return an explicit lease.

Prefer withFileLock for ordinary JavaScript callers. This lower-level shape exists for storage adapters and cross-language bridges that cannot conveniently pass an async callback through their FFI boundary.

unknown

FileLockOptions = {}

Promise<FileLockLease>