Skip to content

VaultMD / CrossLock

Type Alias: CrossLock ​

CrossLock = object

Defined in: src/locked-file/models/cross-lock.ts:8

Configuration for the cross-process advisory lock used by withFileTransform and withFileDelete when cross is set. A holder refreshes its lock file while it holds the lock, and a lock file left by a dead holder is taken over as crossProcessWriterLock in CreateVaultConfig says.

Properties ​

busyTimeoutMs ​

busyTimeoutMs: number

Defined in: src/locked-file/models/cross-lock.ts:16

Milliseconds to wait for the lock before throwing a busy error. A wait that has begun to confirm that a lock file is stale goes on for about 3 seconds more, until it knows.


lockDir ​

lockDir: string

Defined in: src/locked-file/models/cross-lock.ts:10

Absolute path to the directory where lock files are stored.

Released under the MIT License.