Skip to content

Interface: FileLockOptions

optional backends?: readonly FileLockBackend[]

Override the cascade. Defaults to flockfile.


optional dir?: string

Directory for lockfiles. Defaults to $TMPDIR/dbx-tools-locks.


optional onAcquire?: (acquisition) => void

Invoked once the backend for this call has been chosen.

FileLockAcquisition

void


optional timeoutMs?: 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.