Interface: FileLockOptions
Properties
Section titled “Properties”backends?
Section titled “backends?”
optionalbackends?: readonlyFileLockBackend[]
Override the cascade. Defaults to flock → file.
optionaldir?:string
Directory for lockfiles. Defaults to $TMPDIR/dbx-tools-locks.
onAcquire?
Section titled “onAcquire?”
optionalonAcquire?: (acquisition) =>void
Invoked once the backend for this call has been chosen.
Parameters
Section titled “Parameters”acquisition
Section titled “acquisition”Returns
Section titled “Returns”void
timeoutMs?
Section titled “timeoutMs?”
optionaltimeoutMs?:number
Stop waiting and throw after this many milliseconds. Omit to poll forever. This is the only wait-loop knob; stale reclaim timing is fixed.