Optional
aftCfg: AftConfigPrivate
Readonly
_safePrivate
_timeoutReadonly
aftReadonly
lockReadonly
lockReadonly
waitPrivate
_waitStatic
getcreates a new ExpiringFileLock
that can be used to ensure separate processes cannot cause
a race condition when accessing a shared resource
the name of the lock file
Optional
wait: numberthe number of milliseconds to wait for a lock to be acquired
Optional
hold: numberthe number of milliseconds that a lock can be held before it automatically releases
an ExpiringFileLock
instance
Generated using TypeDoc
class will create a new (or use existing) lockfile locking it using an exclusive
flock
that automatically will release after the specifiedmaxDurataionMs
or when theunlock
function is called. if the lock is not immediately available the class will wait up to themaxWaitDurationMs
before throwing an exceptionEx: