(label: string, options?: BenchmarkLockAcquireOptions | undefined): Result<{ lock: BenchmarkLock; }, BenchmarkLockRefusal> import {benchmark_lock_acquire} from '@fuzdev/fuz_util/benchmark_lock.js'; Takes the machine-wide benchmark lock, or reports who holds it. It never waits. A lock that can't be read is refused rather than broken, since there is no process to probe, and a stale lock that can't be removed (another user's, in a sticky temp directory) is refused too.
label
what this process is doing, shown to a run that is refused
stringoptions?
returns
the lock, or the lock's path, its holder (null when the file names none), and whether that holder is gone but its lock couldn't be removed
throws
an- fs error other than the lock existing, or than EPERM removing a stale one