How long can a job be executing before timing out. Null to disable timeout. If you do that, though, and you have a swallowed callback, the lock can remain locked permanently.
In any error produced by BetterLock, extend the stack trace to include incoming trace. Defaults to true.
Whether to log the internal actions. Set to true to use console.log. Alternatively, provide your own function
Lock name. This will be written in all logs and error messages, to help you distinguish between different locks
Max queue size for waiting jobs.
How long can jobs wait in queue before timing out. Null to disable timeout.
Function that detects whether value returned by executor is a promise. This will ducktype-sniff the returned value. Depending on your Promise library of choice, you might want to tighten or loosen this bit.
Generated using TypeDoc
Options that apply on BetterLock instance