@paraharness/lockfile
Functions
| Function | Description |
|---|---|
| acquireFileLock | Acquires an exclusive in-process (PQueue) and cross-process (open(..., 'wx') + heartbeat) lock on lockPath. |
| withFileLock | Executes an asynchronous work callback while holding an exclusive file lock on lockPath. |
Interfaces
| Interface | Description |
|---|---|
| FileLockLease | Active lease returned by acquireFileLock representing exclusive ownership of a lockfile path. |
| FileLockOptions | Configuration options controlling cross-process file lock acquisition, heartbeat cadence, and stale lock recovery. |