Result of the asynchronous critical section.
Canonical path of the resource or directory to lock.
Asynchronous critical section callback.
Lock timeout in milliseconds, cancellation signal, options object, or read context (default: 5000ms).
Resolves with the result of fn.
LockTimeoutError if the lock cannot be acquired within the timeout.
Executes an asynchronous function within an exclusive file lease lock.
Combines in-process FIFO promise queuing with OS-level
.leasefile acquisition. Handles stale process detection, atomic reclamation, token-verified cleanup, and safe cancellation of queued waiters (EXEC-001-T09b).