better-lock 3.0.0 → 3.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (40) hide show
  1. package/README.md +12 -3
  2. package/dist/better_lock.d.ts +13 -7
  3. package/dist/better_lock.js +80 -23
  4. package/dist/better_lock.js.map +1 -1
  5. package/dist/errors.d.ts +1 -0
  6. package/dist/errors.js +7 -1
  7. package/dist/errors.js.map +1 -1
  8. package/dist/options.d.ts +12 -0
  9. package/dist/types.d.ts +4 -0
  10. package/docs/assets/search.js +1 -1
  11. package/docs/classes/BetterLockError.html +3 -3
  12. package/docs/classes/BetterLockExecutionTimeoutError.html +6 -6
  13. package/docs/classes/BetterLockInternalError.html +3 -3
  14. package/docs/classes/BetterLockInvalidArgumentError.html +4 -4
  15. package/docs/classes/BetterLockJobAbortedError.html +5 -5
  16. package/docs/classes/BetterLockQueueOverflowError.html +8 -8
  17. package/docs/classes/BetterLockWaitTimeoutError.html +6 -6
  18. package/docs/classes/_internal_.BetterLock.html +189 -7
  19. package/docs/classes/_internal_.KeyQueue.html +4 -4
  20. package/docs/classes/_internal_.LockJob.html +13 -13
  21. package/docs/functions/_internal_.__home_panta_dev_pantas_better_lock_src_errors_.isAcquisitionFailureError.html +62 -0
  22. package/docs/index.html +13 -2
  23. package/docs/interfaces/BetterLockJobOptions.html +27 -4
  24. package/docs/interfaces/BetterLockOptions.html +26 -8
  25. package/docs/modules/_internal_.__home_panta_dev_pantas_better_lock_src_errors_.html +6 -1
  26. package/docs/types/BetterLockErrorName.html +1 -1
  27. package/docs/types/BetterLockExecutor.html +1 -1
  28. package/docs/types/BetterLockKey.html +1 -1
  29. package/docs/types/BetterLockQueueEjectionStrategy.html +1 -1
  30. package/docs/types/_internal_.ICallback.html +1 -1
  31. package/docs/types/_internal_.ICallbackExecutor.html +1 -1
  32. package/docs/types/_internal_.IErrorExports.html +1 -1
  33. package/docs/types/_internal_.IPromiseExecutor.html +1 -1
  34. package/docs/variables/BetterLock.html +1 -1
  35. package/package.json +1 -1
  36. package/spec/better_lock.spec.ts +160 -0
  37. package/src/better_lock.ts +115 -31
  38. package/src/errors.ts +14 -1
  39. package/src/options.ts +15 -0
  40. package/src/types.ts +5 -0
@@ -39,6 +39,7 @@
39
39
  <div class="tsd-index-list"><a href="_internal_.BetterLock.html#abort" class="tsd-index-link tsd-kind-method tsd-parent-kind-class"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><rect fill="var(--color-icon-background)" stroke="#FF4DB8" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="12" id="icon-2048-path"></rect><path d="M9.162 16V7.24H10.578L11.514 10.072C11.602 10.328 11.674 10.584 11.73 10.84C11.794 11.088 11.842 11.28 11.874 11.416C11.906 11.28 11.954 11.088 12.018 10.84C12.082 10.584 12.154 10.324 12.234 10.06L13.122 7.24H14.538V16H13.482V12.82C13.482 12.468 13.49 12.068 13.506 11.62C13.53 11.172 13.558 10.716 13.59 10.252C13.622 9.78 13.654 9.332 13.686 8.908C13.726 8.476 13.762 8.1 13.794 7.78L12.366 12.16H11.334L9.894 7.78C9.934 8.092 9.97 8.456 10.002 8.872C10.042 9.28 10.078 9.716 10.11 10.18C10.142 10.636 10.166 11.092 10.182 11.548C10.206 12.004 10.218 12.428 10.218 12.82V16H9.162Z" fill="var(--color-text)" id="icon-2048-text"></path></svg><span>abort</span></a>
40
40
  <a href="_internal_.BetterLock.html#abortAll" class="tsd-index-link tsd-kind-method tsd-parent-kind-class"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-2048-path"></use><use href="#icon-2048-text"></use></svg><span>abort<wbr/>All</span></a>
41
41
  <a href="_internal_.BetterLock.html#acquire" class="tsd-index-link tsd-kind-method tsd-parent-kind-class"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-2048-path"></use><use href="#icon-2048-text"></use></svg><span>acquire</span></a>
42
+ <a href="_internal_.BetterLock.html#acquireOr" class="tsd-index-link tsd-kind-method tsd-parent-kind-class"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-2048-path"></use><use href="#icon-2048-text"></use></svg><span>acquire<wbr/>Or</span></a>
42
43
  <a href="_internal_.BetterLock.html#canAcquire" class="tsd-index-link tsd-kind-method tsd-parent-kind-class"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-2048-path"></use><use href="#icon-2048-text"></use></svg><span>can<wbr/>Acquire</span></a>
43
44
  </div></section></div></details></section></section>
44
45
  <section class="tsd-panel-group tsd-member-group">
@@ -65,7 +66,7 @@
65
66
  <div class="tsd-comment tsd-typography"><p>Default options to be used when creating BetterLock instances.</p>
66
67
  </div><aside class="tsd-sources">
67
68
  <ul>
68
- <li>Defined in <a href="https://github.com/panta82/better-lock/blob/336aa4f/src/better_lock.ts#L21">better_lock.ts:21</a></li></ul></aside></section></section>
69
+ <li>Defined in <a href="https://github.com/panta82/better-lock/blob/91aeb2b/src/better_lock.ts#L22">better_lock.ts:22</a></li></ul></aside></section></section>
69
70
  <section class="tsd-panel-group tsd-member-group">
70
71
  <h2>Methods</h2>
71
72
  <section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class"><a id="abort" class="tsd-anchor"></a>
@@ -116,7 +117,7 @@ once promise resolves or rejects.</p>
116
117
  <h4 class="tsd-type-parameters-title">Type Parameters</h4>
117
118
  <ul class="tsd-type-parameters">
118
119
  <li>
119
- <h4>TResult</h4></li></ul></div>
120
+ <h4>TResult<span class="tsd-signature-symbol"> extends </span><span class="tsd-signature-type">unknown</span></h4></li></ul></div>
120
121
  <div class="tsd-parameters">
121
122
  <h4 class="tsd-parameters-title">Parameters</h4>
122
123
  <ul class="tsd-parameter-list">
@@ -141,7 +142,7 @@ once promise resolves or rejects.</p>
141
142
  <h4 class="tsd-type-parameters-title">Type Parameters</h4>
142
143
  <ul class="tsd-type-parameters">
143
144
  <li>
144
- <h4>TResult</h4></li></ul></div>
145
+ <h4>TResult<span class="tsd-signature-symbol"> extends </span><span class="tsd-signature-type">unknown</span></h4></li></ul></div>
145
146
  <div class="tsd-parameters">
146
147
  <h4 class="tsd-parameters-title">Parameters</h4>
147
148
  <ul class="tsd-parameter-list">
@@ -166,7 +167,7 @@ once promise resolves or rejects.</p>
166
167
  <h4 class="tsd-type-parameters-title">Type Parameters</h4>
167
168
  <ul class="tsd-type-parameters">
168
169
  <li>
169
- <h4>TResult</h4></li></ul></div>
170
+ <h4>TResult<span class="tsd-signature-symbol"> extends </span><span class="tsd-signature-type">unknown</span></h4></li></ul></div>
170
171
  <div class="tsd-parameters">
171
172
  <h4 class="tsd-parameters-title">Parameters</h4>
172
173
  <ul class="tsd-parameter-list">
@@ -195,7 +196,7 @@ once promise resolves or rejects.</p>
195
196
  <h4 class="tsd-type-parameters-title">Type Parameters</h4>
196
197
  <ul class="tsd-type-parameters">
197
198
  <li>
198
- <h4>TResult</h4></li></ul></div>
199
+ <h4>TResult<span class="tsd-signature-symbol"> extends </span><span class="tsd-signature-type">unknown</span></h4></li></ul></div>
199
200
  <div class="tsd-parameters">
200
201
  <h4 class="tsd-parameters-title">Parameters</h4>
201
202
  <ul class="tsd-parameter-list">
@@ -224,7 +225,7 @@ once promise resolves or rejects.</p>
224
225
  <h4 class="tsd-type-parameters-title">Type Parameters</h4>
225
226
  <ul class="tsd-type-parameters">
226
227
  <li>
227
- <h4>TResult</h4></li></ul></div>
228
+ <h4>TResult<span class="tsd-signature-symbol"> extends </span><span class="tsd-signature-type">unknown</span></h4></li></ul></div>
228
229
  <div class="tsd-parameters">
229
230
  <h4 class="tsd-parameters-title">Parameters</h4>
230
231
  <ul class="tsd-parameter-list">
@@ -253,7 +254,7 @@ once promise resolves or rejects.</p>
253
254
  <h4 class="tsd-type-parameters-title">Type Parameters</h4>
254
255
  <ul class="tsd-type-parameters">
255
256
  <li>
256
- <h4>TResult</h4></li></ul></div>
257
+ <h4>TResult<span class="tsd-signature-symbol"> extends </span><span class="tsd-signature-type">unknown</span></h4></li></ul></div>
257
258
  <div class="tsd-parameters">
258
259
  <h4 class="tsd-parameters-title">Parameters</h4>
259
260
  <ul class="tsd-parameter-list">
@@ -274,6 +275,186 @@ once promise resolves or rejects.</p>
274
275
  <div class="tsd-comment tsd-typography"><p>Options to be applied on this job only</p>
275
276
  </div></li></ul></div>
276
277
  <h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4></li></ul></section>
278
+ <section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class"><a id="acquireOr" class="tsd-anchor"></a>
279
+ <h3 class="tsd-anchor-link"><span>acquire<wbr/>Or</span><a href="#acquireOr" aria-label="Permalink" class="tsd-anchor-icon"><svg class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><use href="#icon-anchor-a"></use><use href="#icon-anchor-b"></use><use href="#icon-anchor-c"></use></svg></a></h3>
280
+ <ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class">
281
+ <li class="tsd-signature" id="acquireOr.acquireOr-1">acquire<wbr/>Or<span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type" data-tsd-kind="Type parameter">TResult</span><span class="tsd-signature-symbol">&gt;</span><span class="tsd-signature-symbol">(</span>failureResult<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type" data-tsd-kind="Type parameter">TResult</span>, executor<span class="tsd-signature-symbol">: </span><a href="../types/_internal_.IPromiseExecutor.html" class="tsd-signature-type" data-tsd-kind="Type alias">IPromiseExecutor</a><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type" data-tsd-kind="Type parameter">TResult</span><span class="tsd-signature-symbol">&gt;</span>, jobOptions<span class="tsd-signature-symbol">?: </span><a href="../interfaces/BetterLockJobOptions.html" class="tsd-signature-type" data-tsd-kind="Interface">BetterLockJobOptions</a><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type" data-tsd-kind="Type parameter">TResult</span><span class="tsd-signature-symbol">&gt;</span></li>
282
+ <li class="tsd-signature" id="acquireOr.acquireOr-2">acquire<wbr/>Or<span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type" data-tsd-kind="Type parameter">TResult</span><span class="tsd-signature-symbol">&gt;</span><span class="tsd-signature-symbol">(</span>failureResult<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type" data-tsd-kind="Type parameter">TResult</span>, executor<span class="tsd-signature-symbol">: </span><a href="../types/_internal_.ICallbackExecutor.html" class="tsd-signature-type" data-tsd-kind="Type alias">ICallbackExecutor</a><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type" data-tsd-kind="Type parameter">TResult</span><span class="tsd-signature-symbol">&gt;</span>, jobOptions<span class="tsd-signature-symbol">?: </span><a href="../interfaces/BetterLockJobOptions.html" class="tsd-signature-type" data-tsd-kind="Interface">BetterLockJobOptions</a><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type" data-tsd-kind="Type parameter">TResult</span><span class="tsd-signature-symbol">&gt;</span></li>
283
+ <li class="tsd-signature" id="acquireOr.acquireOr-3">acquire<wbr/>Or<span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type" data-tsd-kind="Type parameter">TResult</span><span class="tsd-signature-symbol">&gt;</span><span class="tsd-signature-symbol">(</span>failureResult<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type" data-tsd-kind="Type parameter">TResult</span>, executor<span class="tsd-signature-symbol">: </span><a href="../types/_internal_.ICallbackExecutor.html" class="tsd-signature-type" data-tsd-kind="Type alias">ICallbackExecutor</a><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type" data-tsd-kind="Type parameter">TResult</span><span class="tsd-signature-symbol">&gt;</span>, callback<span class="tsd-signature-symbol">: </span><a href="../types/_internal_.ICallback.html" class="tsd-signature-type" data-tsd-kind="Type alias">ICallback</a><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type" data-tsd-kind="Type parameter">TResult</span><span class="tsd-signature-symbol">&gt;</span>, jobOptions<span class="tsd-signature-symbol">?: </span><a href="../interfaces/BetterLockJobOptions.html" class="tsd-signature-type" data-tsd-kind="Interface">BetterLockJobOptions</a><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">void</span></li>
284
+ <li class="tsd-signature" id="acquireOr.acquireOr-4">acquire<wbr/>Or<span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type" data-tsd-kind="Type parameter">TResult</span><span class="tsd-signature-symbol">&gt;</span><span class="tsd-signature-symbol">(</span>key<span class="tsd-signature-symbol">: </span><a href="../types/BetterLockKey.html" class="tsd-signature-type" data-tsd-kind="Type alias">BetterLockKey</a><span class="tsd-signature-symbol"> | </span><a href="../types/BetterLockKey.html" class="tsd-signature-type" data-tsd-kind="Type alias">BetterLockKey</a><span class="tsd-signature-symbol">[]</span>, failureResult<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type" data-tsd-kind="Type parameter">TResult</span>, executor<span class="tsd-signature-symbol">: </span><a href="../types/_internal_.IPromiseExecutor.html" class="tsd-signature-type" data-tsd-kind="Type alias">IPromiseExecutor</a><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type" data-tsd-kind="Type parameter">TResult</span><span class="tsd-signature-symbol">&gt;</span>, jobOptions<span class="tsd-signature-symbol">?: </span><a href="../interfaces/BetterLockJobOptions.html" class="tsd-signature-type" data-tsd-kind="Interface">BetterLockJobOptions</a><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type" data-tsd-kind="Type parameter">TResult</span><span class="tsd-signature-symbol">&gt;</span></li>
285
+ <li class="tsd-signature" id="acquireOr.acquireOr-5">acquire<wbr/>Or<span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type" data-tsd-kind="Type parameter">TResult</span><span class="tsd-signature-symbol">&gt;</span><span class="tsd-signature-symbol">(</span>key<span class="tsd-signature-symbol">: </span><a href="../types/BetterLockKey.html" class="tsd-signature-type" data-tsd-kind="Type alias">BetterLockKey</a><span class="tsd-signature-symbol"> | </span><a href="../types/BetterLockKey.html" class="tsd-signature-type" data-tsd-kind="Type alias">BetterLockKey</a><span class="tsd-signature-symbol">[]</span>, failureResult<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type" data-tsd-kind="Type parameter">TResult</span>, executor<span class="tsd-signature-symbol">: </span><a href="../types/_internal_.ICallbackExecutor.html" class="tsd-signature-type" data-tsd-kind="Type alias">ICallbackExecutor</a><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type" data-tsd-kind="Type parameter">TResult</span><span class="tsd-signature-symbol">&gt;</span>, jobOptions<span class="tsd-signature-symbol">?: </span><a href="../interfaces/BetterLockJobOptions.html" class="tsd-signature-type" data-tsd-kind="Interface">BetterLockJobOptions</a><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type" data-tsd-kind="Type parameter">TResult</span><span class="tsd-signature-symbol">&gt;</span></li>
286
+ <li class="tsd-signature" id="acquireOr.acquireOr-6">acquire<wbr/>Or<span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type" data-tsd-kind="Type parameter">TResult</span><span class="tsd-signature-symbol">&gt;</span><span class="tsd-signature-symbol">(</span>key<span class="tsd-signature-symbol">: </span><a href="../types/BetterLockKey.html" class="tsd-signature-type" data-tsd-kind="Type alias">BetterLockKey</a><span class="tsd-signature-symbol"> | </span><a href="../types/BetterLockKey.html" class="tsd-signature-type" data-tsd-kind="Type alias">BetterLockKey</a><span class="tsd-signature-symbol">[]</span>, failureResult<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type" data-tsd-kind="Type parameter">TResult</span>, executor<span class="tsd-signature-symbol">: </span><a href="../types/_internal_.ICallbackExecutor.html" class="tsd-signature-type" data-tsd-kind="Type alias">ICallbackExecutor</a><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type" data-tsd-kind="Type parameter">TResult</span><span class="tsd-signature-symbol">&gt;</span>, callback<span class="tsd-signature-symbol">: </span><a href="../types/_internal_.ICallback.html" class="tsd-signature-type" data-tsd-kind="Type alias">ICallback</a><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type" data-tsd-kind="Type parameter">TResult</span><span class="tsd-signature-symbol">&gt;</span>, jobOptions<span class="tsd-signature-symbol">?: </span><a href="../interfaces/BetterLockJobOptions.html" class="tsd-signature-type" data-tsd-kind="Interface">BetterLockJobOptions</a><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">void</span></li></ul>
287
+ <ul class="tsd-descriptions">
288
+ <li class="tsd-description">
289
+ <div class="tsd-comment tsd-typography"><p>The same as acquire, except if the lock can&#39;t be acquired (the executor never gets called), instead of throwing
290
+ an error, the lock will resolve/callback with the provided failureResult value (for example, a <code>null</code>).</p>
291
+ </div>
292
+ <div class="tsd-type-parameters">
293
+ <h4 class="tsd-type-parameters-title">Type Parameters</h4>
294
+ <ul class="tsd-type-parameters">
295
+ <li>
296
+ <h4>TResult<span class="tsd-signature-symbol"> extends </span><span class="tsd-signature-type">unknown</span></h4></li></ul></div>
297
+ <div class="tsd-parameters">
298
+ <h4 class="tsd-parameters-title">Parameters</h4>
299
+ <ul class="tsd-parameter-list">
300
+ <li>
301
+ <h5>failureResult: <span class="tsd-signature-type" data-tsd-kind="Type parameter">TResult</span></h5>
302
+ <div class="tsd-comment tsd-typography"><p>The value to return if the executor never get called. This happens instead of rejecting.</p>
303
+ </div></li>
304
+ <li>
305
+ <h5>executor: <a href="../types/_internal_.IPromiseExecutor.html" class="tsd-signature-type" data-tsd-kind="Type alias">IPromiseExecutor</a><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type" data-tsd-kind="Type parameter">TResult</span><span class="tsd-signature-symbol">&gt;</span></h5>
306
+ <div class="tsd-comment tsd-typography"><p>Function that will run inside the lock. Required.</p>
307
+ </div></li>
308
+ <li>
309
+ <h5><code class="tsd-tag ts-flagOptional">Optional</code> jobOptions: <a href="../interfaces/BetterLockJobOptions.html" class="tsd-signature-type" data-tsd-kind="Interface">BetterLockJobOptions</a></h5>
310
+ <div class="tsd-comment tsd-typography"><p>Options to be applied on this job only</p>
311
+ </div></li></ul></div>
312
+ <h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type" data-tsd-kind="Type parameter">TResult</span><span class="tsd-signature-symbol">&gt;</span></h4></li>
313
+ <li class="tsd-description">
314
+ <div class="tsd-comment tsd-typography"><p>The same as acquire, except if the lock can&#39;t be acquired (the executor never gets called), instead of throwing
315
+ an error, the lock will resolve/callback with the provided failureResult value (for example, a <code>null</code>).</p>
316
+ </div>
317
+ <div class="tsd-type-parameters">
318
+ <h4 class="tsd-type-parameters-title">Type Parameters</h4>
319
+ <ul class="tsd-type-parameters">
320
+ <li>
321
+ <h4>TResult<span class="tsd-signature-symbol"> extends </span><span class="tsd-signature-type">unknown</span></h4></li></ul></div>
322
+ <div class="tsd-parameters">
323
+ <h4 class="tsd-parameters-title">Parameters</h4>
324
+ <ul class="tsd-parameter-list">
325
+ <li>
326
+ <h5>failureResult: <span class="tsd-signature-type" data-tsd-kind="Type parameter">TResult</span></h5>
327
+ <div class="tsd-comment tsd-typography"><p>The value to return if the executor never get called. This happens instead of rejecting.</p>
328
+ </div></li>
329
+ <li>
330
+ <h5>executor: <a href="../types/_internal_.ICallbackExecutor.html" class="tsd-signature-type" data-tsd-kind="Type alias">ICallbackExecutor</a><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type" data-tsd-kind="Type parameter">TResult</span><span class="tsd-signature-symbol">&gt;</span></h5>
331
+ <div class="tsd-comment tsd-typography"><p>Function that will run inside the lock. Required.</p>
332
+ </div></li>
333
+ <li>
334
+ <h5><code class="tsd-tag ts-flagOptional">Optional</code> jobOptions: <a href="../interfaces/BetterLockJobOptions.html" class="tsd-signature-type" data-tsd-kind="Interface">BetterLockJobOptions</a></h5>
335
+ <div class="tsd-comment tsd-typography"><p>Options to be applied on this job only</p>
336
+ </div></li></ul></div>
337
+ <h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type" data-tsd-kind="Type parameter">TResult</span><span class="tsd-signature-symbol">&gt;</span></h4></li>
338
+ <li class="tsd-description">
339
+ <div class="tsd-comment tsd-typography"><p>The same as acquire, except if the lock can&#39;t be acquired (the executor never gets called), instead of throwing
340
+ an error, the lock will resolve/callback with the provided failureResult value (for example, a <code>null</code>).</p>
341
+ </div>
342
+ <div class="tsd-type-parameters">
343
+ <h4 class="tsd-type-parameters-title">Type Parameters</h4>
344
+ <ul class="tsd-type-parameters">
345
+ <li>
346
+ <h4>TResult<span class="tsd-signature-symbol"> extends </span><span class="tsd-signature-type">unknown</span></h4></li></ul></div>
347
+ <div class="tsd-parameters">
348
+ <h4 class="tsd-parameters-title">Parameters</h4>
349
+ <ul class="tsd-parameter-list">
350
+ <li>
351
+ <h5>failureResult: <span class="tsd-signature-type" data-tsd-kind="Type parameter">TResult</span></h5>
352
+ <div class="tsd-comment tsd-typography"><p>The value to return if the executor never get called. This happens instead of rejecting.</p>
353
+ </div></li>
354
+ <li>
355
+ <h5>executor: <a href="../types/_internal_.ICallbackExecutor.html" class="tsd-signature-type" data-tsd-kind="Type alias">ICallbackExecutor</a><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type" data-tsd-kind="Type parameter">TResult</span><span class="tsd-signature-symbol">&gt;</span></h5>
356
+ <div class="tsd-comment tsd-typography"><p>Function that will run inside the lock. Required.</p>
357
+ </div></li>
358
+ <li>
359
+ <h5>callback: <a href="../types/_internal_.ICallback.html" class="tsd-signature-type" data-tsd-kind="Type alias">ICallback</a><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type" data-tsd-kind="Type parameter">TResult</span><span class="tsd-signature-symbol">&gt;</span></h5>
360
+ <div class="tsd-comment tsd-typography"><p>Function to be called after the executor finishes, or there is an execution timeout. Leave out to use promises.</p>
361
+ </div></li>
362
+ <li>
363
+ <h5><code class="tsd-tag ts-flagOptional">Optional</code> jobOptions: <a href="../interfaces/BetterLockJobOptions.html" class="tsd-signature-type" data-tsd-kind="Interface">BetterLockJobOptions</a></h5>
364
+ <div class="tsd-comment tsd-typography"><p>Options to be applied on this job only</p>
365
+ </div></li></ul></div>
366
+ <h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4></li>
367
+ <li class="tsd-description">
368
+ <div class="tsd-comment tsd-typography"><p>The same as acquire, except if the lock can&#39;t be acquired (the executor never gets called), instead of throwing
369
+ an error, the lock will resolve/callback with the provided failureResult value (for example, a <code>null</code>).</p>
370
+ </div>
371
+ <div class="tsd-type-parameters">
372
+ <h4 class="tsd-type-parameters-title">Type Parameters</h4>
373
+ <ul class="tsd-type-parameters">
374
+ <li>
375
+ <h4>TResult<span class="tsd-signature-symbol"> extends </span><span class="tsd-signature-type">unknown</span></h4></li></ul></div>
376
+ <div class="tsd-parameters">
377
+ <h4 class="tsd-parameters-title">Parameters</h4>
378
+ <ul class="tsd-parameter-list">
379
+ <li>
380
+ <h5>key: <a href="../types/BetterLockKey.html" class="tsd-signature-type" data-tsd-kind="Type alias">BetterLockKey</a><span class="tsd-signature-symbol"> | </span><a href="../types/BetterLockKey.html" class="tsd-signature-type" data-tsd-kind="Type alias">BetterLockKey</a><span class="tsd-signature-symbol">[]</span></h5>
381
+ <div class="tsd-comment tsd-typography"><p>Named key or array of keys for this particular call. Calls with different keys will be run in parallel. Not required.</p>
382
+ </div></li>
383
+ <li>
384
+ <h5>failureResult: <span class="tsd-signature-type" data-tsd-kind="Type parameter">TResult</span></h5>
385
+ <div class="tsd-comment tsd-typography"><p>The value to return if the executor never get called. This happens instead of rejecting.</p>
386
+ </div></li>
387
+ <li>
388
+ <h5>executor: <a href="../types/_internal_.IPromiseExecutor.html" class="tsd-signature-type" data-tsd-kind="Type alias">IPromiseExecutor</a><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type" data-tsd-kind="Type parameter">TResult</span><span class="tsd-signature-symbol">&gt;</span></h5>
389
+ <div class="tsd-comment tsd-typography"><p>Function that will run inside the lock. Required.</p>
390
+ </div></li>
391
+ <li>
392
+ <h5><code class="tsd-tag ts-flagOptional">Optional</code> jobOptions: <a href="../interfaces/BetterLockJobOptions.html" class="tsd-signature-type" data-tsd-kind="Interface">BetterLockJobOptions</a></h5>
393
+ <div class="tsd-comment tsd-typography"><p>Options to be applied on this job only</p>
394
+ </div></li></ul></div>
395
+ <h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type" data-tsd-kind="Type parameter">TResult</span><span class="tsd-signature-symbol">&gt;</span></h4></li>
396
+ <li class="tsd-description">
397
+ <div class="tsd-comment tsd-typography"><p>The same as acquire, except if the lock can&#39;t be acquired (the executor never gets called), instead of throwing
398
+ an error, the lock will resolve/callback with the provided failureResult value (for example, a <code>null</code>).</p>
399
+ </div>
400
+ <div class="tsd-type-parameters">
401
+ <h4 class="tsd-type-parameters-title">Type Parameters</h4>
402
+ <ul class="tsd-type-parameters">
403
+ <li>
404
+ <h4>TResult<span class="tsd-signature-symbol"> extends </span><span class="tsd-signature-type">unknown</span></h4></li></ul></div>
405
+ <div class="tsd-parameters">
406
+ <h4 class="tsd-parameters-title">Parameters</h4>
407
+ <ul class="tsd-parameter-list">
408
+ <li>
409
+ <h5>key: <a href="../types/BetterLockKey.html" class="tsd-signature-type" data-tsd-kind="Type alias">BetterLockKey</a><span class="tsd-signature-symbol"> | </span><a href="../types/BetterLockKey.html" class="tsd-signature-type" data-tsd-kind="Type alias">BetterLockKey</a><span class="tsd-signature-symbol">[]</span></h5>
410
+ <div class="tsd-comment tsd-typography"><p>Named key or array of keys for this particular call. Calls with different keys will be run in parallel. Not required.</p>
411
+ </div></li>
412
+ <li>
413
+ <h5>failureResult: <span class="tsd-signature-type" data-tsd-kind="Type parameter">TResult</span></h5>
414
+ <div class="tsd-comment tsd-typography"><p>The value to return if the executor never get called. This happens instead of rejecting.</p>
415
+ </div></li>
416
+ <li>
417
+ <h5>executor: <a href="../types/_internal_.ICallbackExecutor.html" class="tsd-signature-type" data-tsd-kind="Type alias">ICallbackExecutor</a><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type" data-tsd-kind="Type parameter">TResult</span><span class="tsd-signature-symbol">&gt;</span></h5>
418
+ <div class="tsd-comment tsd-typography"><p>Function that will run inside the lock. Required.</p>
419
+ </div></li>
420
+ <li>
421
+ <h5><code class="tsd-tag ts-flagOptional">Optional</code> jobOptions: <a href="../interfaces/BetterLockJobOptions.html" class="tsd-signature-type" data-tsd-kind="Interface">BetterLockJobOptions</a></h5>
422
+ <div class="tsd-comment tsd-typography"><p>Options to be applied on this job only</p>
423
+ </div></li></ul></div>
424
+ <h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type" data-tsd-kind="Type parameter">TResult</span><span class="tsd-signature-symbol">&gt;</span></h4></li>
425
+ <li class="tsd-description">
426
+ <div class="tsd-comment tsd-typography"><p>The same as acquire, except if the lock can&#39;t be acquired (the executor never gets called), instead of throwing
427
+ an error, the lock will resolve/callback with the provided failureResult value (for example, a <code>null</code>).</p>
428
+ </div>
429
+ <div class="tsd-type-parameters">
430
+ <h4 class="tsd-type-parameters-title">Type Parameters</h4>
431
+ <ul class="tsd-type-parameters">
432
+ <li>
433
+ <h4>TResult<span class="tsd-signature-symbol"> extends </span><span class="tsd-signature-type">unknown</span></h4></li></ul></div>
434
+ <div class="tsd-parameters">
435
+ <h4 class="tsd-parameters-title">Parameters</h4>
436
+ <ul class="tsd-parameter-list">
437
+ <li>
438
+ <h5>key: <a href="../types/BetterLockKey.html" class="tsd-signature-type" data-tsd-kind="Type alias">BetterLockKey</a><span class="tsd-signature-symbol"> | </span><a href="../types/BetterLockKey.html" class="tsd-signature-type" data-tsd-kind="Type alias">BetterLockKey</a><span class="tsd-signature-symbol">[]</span></h5>
439
+ <div class="tsd-comment tsd-typography"><p>Named key or array of keys for this particular call. Calls with different keys will be run in parallel. Not required.</p>
440
+ </div></li>
441
+ <li>
442
+ <h5>failureResult: <span class="tsd-signature-type" data-tsd-kind="Type parameter">TResult</span></h5>
443
+ <div class="tsd-comment tsd-typography"><p>The value to return if the executor never get called. This happens instead of rejecting.</p>
444
+ </div></li>
445
+ <li>
446
+ <h5>executor: <a href="../types/_internal_.ICallbackExecutor.html" class="tsd-signature-type" data-tsd-kind="Type alias">ICallbackExecutor</a><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type" data-tsd-kind="Type parameter">TResult</span><span class="tsd-signature-symbol">&gt;</span></h5>
447
+ <div class="tsd-comment tsd-typography"><p>Function that will run inside the lock. Required.</p>
448
+ </div></li>
449
+ <li>
450
+ <h5>callback: <a href="../types/_internal_.ICallback.html" class="tsd-signature-type" data-tsd-kind="Type alias">ICallback</a><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type" data-tsd-kind="Type parameter">TResult</span><span class="tsd-signature-symbol">&gt;</span></h5>
451
+ <div class="tsd-comment tsd-typography"><p>Function to be called after the executor finishes, or there is an execution timeout. Leave out to use promises.</p>
452
+ </div></li>
453
+ <li>
454
+ <h5><code class="tsd-tag ts-flagOptional">Optional</code> jobOptions: <a href="../interfaces/BetterLockJobOptions.html" class="tsd-signature-type" data-tsd-kind="Interface">BetterLockJobOptions</a></h5>
455
+ <div class="tsd-comment tsd-typography"><p>Options to be applied on this job only</p>
456
+ </div></li></ul></div>
457
+ <h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4></li></ul></section>
277
458
  <section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class"><a id="canAcquire" class="tsd-anchor"></a>
278
459
  <h3 class="tsd-anchor-link"><span>can<wbr/>Acquire</span><a href="#canAcquire" aria-label="Permalink" class="tsd-anchor-icon"><svg class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><use href="#icon-anchor-a"></use><use href="#icon-anchor-b"></use><use href="#icon-anchor-c"></use></svg></a></h3>
279
460
  <ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class">
@@ -318,6 +499,7 @@ once promise resolves or rejects.</p>
318
499
  <li class="tsd-kind-method tsd-parent-kind-class"><a href="_internal_.BetterLock.html#abort" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-2048-path"></use><use href="#icon-2048-text"></use></svg>abort</a></li>
319
500
  <li class="tsd-kind-method tsd-parent-kind-class"><a href="_internal_.BetterLock.html#abortAll" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-2048-path"></use><use href="#icon-2048-text"></use></svg>abort<wbr/>All</a></li>
320
501
  <li class="tsd-kind-method tsd-parent-kind-class"><a href="_internal_.BetterLock.html#acquire" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-2048-path"></use><use href="#icon-2048-text"></use></svg>acquire</a></li>
502
+ <li class="tsd-kind-method tsd-parent-kind-class"><a href="_internal_.BetterLock.html#acquireOr" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-2048-path"></use><use href="#icon-2048-text"></use></svg>acquire<wbr/>Or</a></li>
321
503
  <li class="tsd-kind-method tsd-parent-kind-class"><a href="_internal_.BetterLock.html#canAcquire" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-2048-path"></use><use href="#icon-2048-text"></use></svg>can<wbr/>Acquire</a></li></ul></li></ul></nav></div></div>
322
504
  <div class="container tsd-generator">
323
505
  <p>Generated using <a href="https://typedoc.org/" target="_blank">TypeDoc</a></p></div>
@@ -63,7 +63,7 @@
63
63
  <div class="tsd-comment tsd-typography"><p>Active job that is holding this key. This job could be waiting on other keys or executing.</p>
64
64
  </div><aside class="tsd-sources">
65
65
  <ul>
66
- <li>Defined in <a href="https://github.com/panta82/better-lock/blob/336aa4f/src/internals.ts#L109">internals.ts:109</a></li></ul></aside></section>
66
+ <li>Defined in <a href="https://github.com/panta82/better-lock/blob/91aeb2b/src/internals.ts#L109">internals.ts:109</a></li></ul></aside></section>
67
67
  <section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class"><a id="jobs" class="tsd-anchor"></a>
68
68
  <h3 class="tsd-anchor-link"><span>jobs</span><a href="#jobs" aria-label="Permalink" class="tsd-anchor-icon"><svg class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><use href="#icon-anchor-a"></use><use href="#icon-anchor-b"></use><use href="#icon-anchor-c"></use></svg></a></h3>
69
69
  <div class="tsd-signature">jobs<span class="tsd-signature-symbol">:</span> <a href="_internal_.LockJob.html" class="tsd-signature-type" data-tsd-kind="Class">LockJob</a><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">any</span><span class="tsd-signature-symbol">&gt;</span><span class="tsd-signature-symbol">[]</span><span class="tsd-signature-symbol"> = []</span></div>
@@ -71,17 +71,17 @@
71
71
  Jobs in this state are governed by the wait_timeout.</p>
72
72
  </div><aside class="tsd-sources">
73
73
  <ul>
74
- <li>Defined in <a href="https://github.com/panta82/better-lock/blob/336aa4f/src/internals.ts#L104">internals.ts:104</a></li></ul></aside></section>
74
+ <li>Defined in <a href="https://github.com/panta82/better-lock/blob/91aeb2b/src/internals.ts#L104">internals.ts:104</a></li></ul></aside></section>
75
75
  <section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class"><a id="key" class="tsd-anchor"></a>
76
76
  <h3 class="tsd-anchor-link"><span>key</span><a href="#key" aria-label="Permalink" class="tsd-anchor-icon"><svg class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><use href="#icon-anchor-a"></use><use href="#icon-anchor-b"></use><use href="#icon-anchor-c"></use></svg></a></h3>
77
77
  <div class="tsd-signature">key<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span></div><aside class="tsd-sources">
78
78
  <ul>
79
- <li>Defined in <a href="https://github.com/panta82/better-lock/blob/336aa4f/src/internals.ts#L98">internals.ts:98</a></li></ul></aside></section>
79
+ <li>Defined in <a href="https://github.com/panta82/better-lock/blob/91aeb2b/src/internals.ts#L98">internals.ts:98</a></li></ul></aside></section>
80
80
  <section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class"><a id="DEFAULT_QUEUE_KEY" class="tsd-anchor"></a>
81
81
  <h3 class="tsd-anchor-link"><code class="tsd-tag ts-flagStatic">Static</code> <code class="tsd-tag ts-flagReadonly">Readonly</code> <span>DEFAULT_<wbr/>QUEUE_<wbr/>KEY</span><a href="#DEFAULT_QUEUE_KEY" aria-label="Permalink" class="tsd-anchor-icon"><svg class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><use href="#icon-anchor-a"></use><use href="#icon-anchor-b"></use><use href="#icon-anchor-c"></use></svg></a></h3>
82
82
  <div class="tsd-signature">DEFAULT_<wbr/>QUEUE_<wbr/>KEY<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">&quot;___DEFAULT_QUEUE_KEY___&quot;</span><span class="tsd-signature-symbol"> = &#39;___DEFAULT_QUEUE_KEY___&#39;</span></div><aside class="tsd-sources">
83
83
  <ul>
84
- <li>Defined in <a href="https://github.com/panta82/better-lock/blob/336aa4f/src/internals.ts#L96">internals.ts:96</a></li></ul></aside></section></section>
84
+ <li>Defined in <a href="https://github.com/panta82/better-lock/blob/91aeb2b/src/internals.ts#L96">internals.ts:96</a></li></ul></aside></section></section>
85
85
  <section class="tsd-panel-group tsd-member-group">
86
86
  <h2>Methods</h2>
87
87
  <section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class"><a id="toString" class="tsd-anchor"></a>
@@ -89,89 +89,89 @@
89
89
  This is supplied by user in callback API, and generated internally otherwise.</p>
90
90
  </div><aside class="tsd-sources">
91
91
  <ul>
92
- <li>Defined in <a href="https://github.com/panta82/better-lock/blob/336aa4f/src/internals.ts#L32">internals.ts:32</a></li></ul></aside></section>
92
+ <li>Defined in <a href="https://github.com/panta82/better-lock/blob/91aeb2b/src/internals.ts#L32">internals.ts:32</a></li></ul></aside></section>
93
93
  <section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class"><a id="ended_at" class="tsd-anchor"></a>
94
94
  <h3 class="tsd-anchor-link"><span>ended_<wbr/>at</span><a href="#ended_at" aria-label="Permalink" class="tsd-anchor-icon"><svg class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><use href="#icon-anchor-a"></use><use href="#icon-anchor-b"></use><use href="#icon-anchor-c"></use></svg></a></h3>
95
95
  <div class="tsd-signature">ended_<wbr/>at<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">Date</span><span class="tsd-signature-symbol"> = null</span></div>
96
96
  <div class="tsd-comment tsd-typography"><p>This is set when job ends, in case something holds a reference to it</p>
97
97
  </div><aside class="tsd-sources">
98
98
  <ul>
99
- <li>Defined in <a href="https://github.com/panta82/better-lock/blob/336aa4f/src/internals.ts#L47">internals.ts:47</a></li></ul></aside></section>
99
+ <li>Defined in <a href="https://github.com/panta82/better-lock/blob/91aeb2b/src/internals.ts#L47">internals.ts:47</a></li></ul></aside></section>
100
100
  <section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class"><a id="enqueued_at" class="tsd-anchor"></a>
101
101
  <h3 class="tsd-anchor-link"><span>enqueued_<wbr/>at</span><a href="#enqueued_at" aria-label="Permalink" class="tsd-anchor-icon"><svg class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><use href="#icon-anchor-a"></use><use href="#icon-anchor-b"></use><use href="#icon-anchor-c"></use></svg></a></h3>
102
102
  <div class="tsd-signature">enqueued_<wbr/>at<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">Date</span><span class="tsd-signature-symbol"> = ...</span></div>
103
103
  <div class="tsd-comment tsd-typography"><p>Timestamp when job was created</p>
104
104
  </div><aside class="tsd-sources">
105
105
  <ul>
106
- <li>Defined in <a href="https://github.com/panta82/better-lock/blob/336aa4f/src/internals.ts#L37">internals.ts:37</a></li></ul></aside></section>
106
+ <li>Defined in <a href="https://github.com/panta82/better-lock/blob/91aeb2b/src/internals.ts#L37">internals.ts:37</a></li></ul></aside></section>
107
107
  <section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class"><a id="executed_at" class="tsd-anchor"></a>
108
108
  <h3 class="tsd-anchor-link"><span>executed_<wbr/>at</span><a href="#executed_at" aria-label="Permalink" class="tsd-anchor-icon"><svg class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><use href="#icon-anchor-a"></use><use href="#icon-anchor-b"></use><use href="#icon-anchor-c"></use></svg></a></h3>
109
109
  <div class="tsd-signature">executed_<wbr/>at<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">Date</span><span class="tsd-signature-symbol"> = null</span></div>
110
110
  <div class="tsd-comment tsd-typography"><p>Timestamp when job was executed</p>
111
111
  </div><aside class="tsd-sources">
112
112
  <ul>
113
- <li>Defined in <a href="https://github.com/panta82/better-lock/blob/336aa4f/src/internals.ts#L42">internals.ts:42</a></li></ul></aside></section>
113
+ <li>Defined in <a href="https://github.com/panta82/better-lock/blob/91aeb2b/src/internals.ts#L42">internals.ts:42</a></li></ul></aside></section>
114
114
  <section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class"><a id="execution_timeout_id" class="tsd-anchor"></a>
115
115
  <h3 class="tsd-anchor-link"><span>execution_<wbr/>timeout_<wbr/>id</span><a href="#execution_timeout_id" aria-label="Permalink" class="tsd-anchor-icon"><svg class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><use href="#icon-anchor-a"></use><use href="#icon-anchor-b"></use><use href="#icon-anchor-c"></use></svg></a></h3>
116
116
  <div class="tsd-signature">execution_<wbr/>timeout_<wbr/>id<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">any</span><span class="tsd-signature-symbol"> = null</span></div>
117
117
  <div class="tsd-comment tsd-typography"><p>Id of the execution timer</p>
118
118
  </div><aside class="tsd-sources">
119
119
  <ul>
120
- <li>Defined in <a href="https://github.com/panta82/better-lock/blob/336aa4f/src/internals.ts#L62">internals.ts:62</a></li></ul></aside></section>
120
+ <li>Defined in <a href="https://github.com/panta82/better-lock/blob/91aeb2b/src/internals.ts#L62">internals.ts:62</a></li></ul></aside></section>
121
121
  <section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class"><a id="executor" class="tsd-anchor"></a>
122
122
  <h3 class="tsd-anchor-link"><span>executor</span><a href="#executor" aria-label="Permalink" class="tsd-anchor-icon"><svg class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><use href="#icon-anchor-a"></use><use href="#icon-anchor-b"></use><use href="#icon-anchor-c"></use></svg></a></h3>
123
123
  <div class="tsd-signature">executor<span class="tsd-signature-symbol">:</span> <a href="../types/BetterLockExecutor.html" class="tsd-signature-type" data-tsd-kind="Type alias">BetterLockExecutor</a><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type" data-tsd-kind="Type parameter">TResult</span><span class="tsd-signature-symbol">&gt;</span></div>
124
124
  <div class="tsd-comment tsd-typography"><p>Function that will be called inside the lock</p>
125
125
  </div><aside class="tsd-sources">
126
126
  <ul>
127
- <li>Defined in <a href="https://github.com/panta82/better-lock/blob/336aa4f/src/internals.ts#L26">internals.ts:26</a></li></ul></aside></section>
127
+ <li>Defined in <a href="https://github.com/panta82/better-lock/blob/91aeb2b/src/internals.ts#L26">internals.ts:26</a></li></ul></aside></section>
128
128
  <section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class"><a id="id" class="tsd-anchor"></a>
129
129
  <h3 class="tsd-anchor-link"><span>id</span><a href="#id" aria-label="Permalink" class="tsd-anchor-icon"><svg class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><use href="#icon-anchor-a"></use><use href="#icon-anchor-b"></use><use href="#icon-anchor-c"></use></svg></a></h3>
130
130
  <div class="tsd-signature">id<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">any</span><span class="tsd-signature-symbol"> = undefined</span></div>
131
131
  <div class="tsd-comment tsd-typography"><p>ID to uniquely identify this particular job</p>
132
132
  </div><aside class="tsd-sources">
133
133
  <ul>
134
- <li>Defined in <a href="https://github.com/panta82/better-lock/blob/336aa4f/src/internals.ts#L11">internals.ts:11</a></li></ul></aside></section>
134
+ <li>Defined in <a href="https://github.com/panta82/better-lock/blob/91aeb2b/src/internals.ts#L11">internals.ts:11</a></li></ul></aside></section>
135
135
  <section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class"><a id="incoming_stack" class="tsd-anchor"></a>
136
136
  <h3 class="tsd-anchor-link"><span>incoming_<wbr/>stack</span><a href="#incoming_stack" aria-label="Permalink" class="tsd-anchor-icon"><svg class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><use href="#icon-anchor-a"></use><use href="#icon-anchor-b"></use><use href="#icon-anchor-c"></use></svg></a></h3>
137
137
  <div class="tsd-signature">incoming_<wbr/>stack<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol"> = null</span></div>
138
138
  <div class="tsd-comment tsd-typography"><p>Saved incoming stack, for the purpose of extending stack traces</p>
139
139
  </div><aside class="tsd-sources">
140
140
  <ul>
141
- <li>Defined in <a href="https://github.com/panta82/better-lock/blob/336aa4f/src/internals.ts#L67">internals.ts:67</a></li></ul></aside></section>
141
+ <li>Defined in <a href="https://github.com/panta82/better-lock/blob/91aeb2b/src/internals.ts#L67">internals.ts:67</a></li></ul></aside></section>
142
142
  <section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class"><a id="keys" class="tsd-anchor"></a>
143
143
  <h3 class="tsd-anchor-link"><span>keys</span><a href="#keys" aria-label="Permalink" class="tsd-anchor-icon"><svg class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><use href="#icon-anchor-a"></use><use href="#icon-anchor-b"></use><use href="#icon-anchor-c"></use></svg></a></h3>
144
144
  <div class="tsd-signature">keys<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">[]</span></div>
145
145
  <div class="tsd-comment tsd-typography"><p>List of keys that will be locked. Always an array</p>
146
146
  </div><aside class="tsd-sources">
147
147
  <ul>
148
- <li>Defined in <a href="https://github.com/panta82/better-lock/blob/336aa4f/src/internals.ts#L16">internals.ts:16</a></li></ul></aside></section>
148
+ <li>Defined in <a href="https://github.com/panta82/better-lock/blob/91aeb2b/src/internals.ts#L16">internals.ts:16</a></li></ul></aside></section>
149
149
  <section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class"><a id="options" class="tsd-anchor"></a>
150
150
  <h3 class="tsd-anchor-link"><span>options</span><a href="#options" aria-label="Permalink" class="tsd-anchor-icon"><svg class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><use href="#icon-anchor-a"></use><use href="#icon-anchor-b"></use><use href="#icon-anchor-c"></use></svg></a></h3>
151
151
  <div class="tsd-signature">options<span class="tsd-signature-symbol">:</span> <a href="../interfaces/BetterLockJobOptions.html" class="tsd-signature-type" data-tsd-kind="Interface">BetterLockJobOptions</a></div>
152
152
  <div class="tsd-comment tsd-typography"><p>Options that apply to this particular job</p>
153
153
  </div><aside class="tsd-sources">
154
154
  <ul>
155
- <li>Defined in <a href="https://github.com/panta82/better-lock/blob/336aa4f/src/internals.ts#L52">internals.ts:52</a></li></ul></aside></section>
155
+ <li>Defined in <a href="https://github.com/panta82/better-lock/blob/91aeb2b/src/internals.ts#L52">internals.ts:52</a></li></ul></aside></section>
156
156
  <section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class"><a id="wait_timeout_id" class="tsd-anchor"></a>
157
157
  <h3 class="tsd-anchor-link"><span>wait_<wbr/>timeout_<wbr/>id</span><a href="#wait_timeout_id" aria-label="Permalink" class="tsd-anchor-icon"><svg class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><use href="#icon-anchor-a"></use><use href="#icon-anchor-b"></use><use href="#icon-anchor-c"></use></svg></a></h3>
158
158
  <div class="tsd-signature">wait_<wbr/>timeout_<wbr/>id<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">any</span><span class="tsd-signature-symbol"> = null</span></div>
159
159
  <div class="tsd-comment tsd-typography"><p>Id of the wait timer</p>
160
160
  </div><aside class="tsd-sources">
161
161
  <ul>
162
- <li>Defined in <a href="https://github.com/panta82/better-lock/blob/336aa4f/src/internals.ts#L57">internals.ts:57</a></li></ul></aside></section>
162
+ <li>Defined in <a href="https://github.com/panta82/better-lock/blob/91aeb2b/src/internals.ts#L57">internals.ts:57</a></li></ul></aside></section>
163
163
  <section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class"><a id="waiting_count" class="tsd-anchor"></a>
164
164
  <h3 class="tsd-anchor-link"><span>waiting_<wbr/>count</span><a href="#waiting_count" aria-label="Permalink" class="tsd-anchor-icon"><svg class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><use href="#icon-anchor-a"></use><use href="#icon-anchor-b"></use><use href="#icon-anchor-c"></use></svg></a></h3>
165
165
  <div class="tsd-signature">waiting_<wbr/>count<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">number</span></div>
166
166
  <div class="tsd-comment tsd-typography"><p>Number of keys which this job is waiting on. Once this reaches 0, job will be executed</p>
167
167
  </div><aside class="tsd-sources">
168
168
  <ul>
169
- <li>Defined in <a href="https://github.com/panta82/better-lock/blob/336aa4f/src/internals.ts#L21">internals.ts:21</a></li></ul></aside></section>
169
+ <li>Defined in <a href="https://github.com/panta82/better-lock/blob/91aeb2b/src/internals.ts#L21">internals.ts:21</a></li></ul></aside></section>
170
170
  <section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class"><a id="_lastId" class="tsd-anchor"></a>
171
171
  <h3 class="tsd-anchor-link"><code class="tsd-tag ts-flagStatic">Static</code> <span>_last<wbr/>Id</span><a href="#_lastId" aria-label="Permalink" class="tsd-anchor-icon"><svg class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><use href="#icon-anchor-a"></use><use href="#icon-anchor-b"></use><use href="#icon-anchor-c"></use></svg></a></h3>
172
172
  <div class="tsd-signature">_last<wbr/>Id<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">number</span><span class="tsd-signature-symbol"> = 0</span></div><aside class="tsd-sources">
173
173
  <ul>
174
- <li>Defined in <a href="https://github.com/panta82/better-lock/blob/336aa4f/src/internals.ts#L8">internals.ts:8</a></li></ul></aside></section></section>
174
+ <li>Defined in <a href="https://github.com/panta82/better-lock/blob/91aeb2b/src/internals.ts#L8">internals.ts:8</a></li></ul></aside></section></section>
175
175
  <section class="tsd-panel-group tsd-member-group">
176
176
  <h2>Methods</h2>
177
177
  <section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class"><a id="toString" class="tsd-anchor"></a>
@@ -0,0 +1,62 @@
1
+ <!DOCTYPE html><html class="default"><head><meta charSet="utf-8"/><meta http-equiv="x-ua-compatible" content="IE=edge"/><title>isAcquisitionFailureError | better-lock</title><meta name="description" content="Documentation for better-lock"/><meta name="viewport" content="width=device-width, initial-scale=1"/><link rel="stylesheet" href="../assets/style.css"/><link rel="stylesheet" href="../assets/highlight.css"/><script async src="../assets/search.js" id="search-script"></script></head><body><script>document.documentElement.dataset.theme = localStorage.getItem("tsd-theme") || "os"</script><header class="tsd-page-toolbar">
2
+ <div class="tsd-toolbar-contents container">
3
+ <div class="table-cell" id="tsd-search" data-base="..">
4
+ <div class="field"><label for="tsd-search-field" class="tsd-widget search no-caption"><svg width="16" height="16" viewBox="0 0 16 16" fill="none"><path d="M15.7824 13.833L12.6666 10.7177C12.5259 10.5771 12.3353 10.499 12.1353 10.499H11.6259C12.4884 9.39596 13.001 8.00859 13.001 6.49937C13.001 2.90909 10.0914 0 6.50048 0C2.90959 0 0 2.90909 0 6.49937C0 10.0896 2.90959 12.9987 6.50048 12.9987C8.00996 12.9987 9.39756 12.4863 10.5008 11.6239V12.1332C10.5008 12.3332 10.5789 12.5238 10.7195 12.6644L13.8354 15.7797C14.1292 16.0734 14.6042 16.0734 14.8948 15.7797L15.7793 14.8954C16.0731 14.6017 16.0731 14.1267 15.7824 13.833ZM6.50048 10.499C4.29094 10.499 2.50018 8.71165 2.50018 6.49937C2.50018 4.29021 4.28781 2.49976 6.50048 2.49976C8.71001 2.49976 10.5008 4.28708 10.5008 6.49937C10.5008 8.70852 8.71314 10.499 6.50048 10.499Z" fill="var(--color-text)"></path></svg></label><input type="text" id="tsd-search-field" aria-label="Search"/></div>
5
+ <ul class="results">
6
+ <li class="state loading">Preparing search index...</li>
7
+ <li class="state failure">The search index is not available</li></ul><a href="../index.html" class="title">better-lock</a></div>
8
+ <div class="table-cell" id="tsd-widgets"><a href="#" class="tsd-widget menu no-caption" data-toggle="menu" aria-label="Menu"><svg width="16" height="16" viewBox="0 0 16 16" fill="none"><rect x="1" y="3" width="14" height="2" fill="var(--color-text)"></rect><rect x="1" y="7" width="14" height="2" fill="var(--color-text)"></rect><rect x="1" y="11" width="14" height="2" fill="var(--color-text)"></rect></svg></a></div></div></header>
9
+ <div class="container container-main">
10
+ <div class="col-8 col-content">
11
+ <div class="tsd-page-title">
12
+ <ul class="tsd-breadcrumb">
13
+ <li><a href="../modules.html">better-lock</a></li>
14
+ <li><a href="../modules/_internal_.html">&lt;internal&gt;</a></li>
15
+ <li><a href="../modules/_internal_.__home_panta_dev_pantas_better_lock_src_errors_.html">&quot;/home/panta/dev/pantas/better-lock/src/errors&quot;</a></li>
16
+ <li><a href="_internal_.__home_panta_dev_pantas_better_lock_src_errors_.isAcquisitionFailureError.html">isAcquisitionFailureError</a></li></ul>
17
+ <h1>Function isAcquisitionFailureError</h1></div>
18
+ <section class="tsd-panel">
19
+ <ul class="tsd-signatures tsd-kind-function tsd-parent-kind-namespace">
20
+ <li class="tsd-signature" id="isAcquisitionFailureError">is<wbr/>Acquisition<wbr/>Failure<wbr/>Error<span class="tsd-signature-symbol">(</span>err<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">any</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">boolean</span></li></ul>
21
+ <ul class="tsd-descriptions">
22
+ <li class="tsd-description">
23
+ <div class="tsd-parameters">
24
+ <h4 class="tsd-parameters-title">Parameters</h4>
25
+ <ul class="tsd-parameter-list">
26
+ <li>
27
+ <h5>err: <span class="tsd-signature-type">any</span></h5></li></ul></div>
28
+ <h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">boolean</span></h4></li></ul></section></div>
29
+ <div class="col-4 col-menu menu-sticky-wrap menu-highlight">
30
+ <div class="tsd-navigation settings">
31
+ <details class="tsd-index-accordion"><summary class="tsd-accordion-summary">
32
+ <h3><svg width="20" height="20" viewBox="0 0 24 24" fill="none"><path d="M4.93896 8.531L12 15.591L19.061 8.531L16.939 6.409L12 11.349L7.06098 6.409L4.93896 8.531Z" fill="var(--color-text)"></path></svg> Settings</h3></summary>
33
+ <div class="tsd-accordion-details">
34
+ <div class="tsd-filter-visibility">
35
+ <h4 class="uppercase">Member Visibility</h4><form>
36
+ <ul id="tsd-filter-options">
37
+ <li class="tsd-filter-item"><label class="tsd-filter-input"><input type="checkbox" id="tsd-filter-inherited" name="inherited" checked/><svg width="32" height="32" viewBox="0 0 32 32" aria-hidden="true"><rect class="tsd-checkbox-background" width="30" height="30" x="1" y="1" rx="6" fill="none"></rect><path class="tsd-checkbox-checkmark" d="M8.35422 16.8214L13.2143 21.75L24.6458 10.25" stroke="none" stroke-width="3.5" stroke-linejoin="round" fill="none"></path></svg><span>Inherited</span></label></li></ul></form></div>
38
+ <div class="tsd-theme-toggle">
39
+ <h4 class="uppercase">Theme</h4><select id="theme"><option value="os">OS</option><option value="light">Light</option><option value="dark">Dark</option></select></div></div></details></div>
40
+ <nav class="tsd-navigation primary">
41
+ <details class="tsd-index-accordion" open><summary class="tsd-accordion-summary">
42
+ <h3><svg width="20" height="20" viewBox="0 0 24 24" fill="none"><path d="M4.93896 8.531L12 15.591L19.061 8.531L16.939 6.409L12 11.349L7.06098 6.409L4.93896 8.531Z" fill="var(--color-text)"></path></svg> Modules</h3></summary>
43
+ <div class="tsd-accordion-details">
44
+ <ul>
45
+ <li class="current"><a href="../modules.html">better-<wbr/>lock</a>
46
+ <ul>
47
+ <li class="current tsd-kind-namespace"><a href="../modules/_internal_.html">&lt;internal&gt;</a>
48
+ <ul>
49
+ <li class="current tsd-kind-namespace tsd-parent-kind-namespace"><a href="../modules/_internal_.__home_panta_dev_pantas_better_lock_src_errors_.html">&quot;/home/panta/dev/pantas/better-<wbr/>lock/src/errors&quot;</a></li></ul></li></ul></li></ul></div></details></nav>
50
+ <nav class="tsd-navigation secondary menu-sticky">
51
+ <ul>
52
+ <li class="tsd-kind-reference tsd-parent-kind-namespace"><a href="../modules/_internal_.__home_panta_dev_pantas_better_lock_src_errors_.html#BetterLockError" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><rect fill="var(--color-icon-background)" stroke="#FF4D82" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="12" id="icon-8388608-path"></rect><path d="M10.354 17V8.24H13.066C13.586 8.24 14.042 8.348 14.434 8.564C14.826 8.772 15.13 9.064 15.346 9.44C15.562 9.816 15.67 10.256 15.67 10.76C15.67 11.352 15.514 11.86 15.202 12.284C14.898 12.708 14.482 13 13.954 13.16L15.79 17H14.518L12.838 13.28H11.434V17H10.354ZM11.434 12.308H13.066C13.514 12.308 13.874 12.168 14.146 11.888C14.418 11.6 14.554 11.224 14.554 10.76C14.554 10.288 14.418 9.912 14.146 9.632C13.874 9.352 13.514 9.212 13.066 9.212H11.434V12.308Z" fill="var(--color-text)" id="icon-8388608-text"></path></svg>Better<wbr/>Lock<wbr/>Error</a></li>
53
+ <li class="tsd-kind-reference tsd-parent-kind-namespace"><a href="../modules/_internal_.__home_panta_dev_pantas_better_lock_src_errors_.html#BetterLockExecutionTimeoutError" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-8388608-path"></use><use href="#icon-8388608-text"></use></svg>Better<wbr/>Lock<wbr/>Execution<wbr/>Timeout<wbr/>Error</a></li>
54
+ <li class="tsd-kind-reference tsd-parent-kind-namespace"><a href="../modules/_internal_.__home_panta_dev_pantas_better_lock_src_errors_.html#BetterLockInternalError" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-8388608-path"></use><use href="#icon-8388608-text"></use></svg>Better<wbr/>Lock<wbr/>Internal<wbr/>Error</a></li>
55
+ <li class="tsd-kind-reference tsd-parent-kind-namespace"><a href="../modules/_internal_.__home_panta_dev_pantas_better_lock_src_errors_.html#BetterLockInvalidArgumentError" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-8388608-path"></use><use href="#icon-8388608-text"></use></svg>Better<wbr/>Lock<wbr/>Invalid<wbr/>Argument<wbr/>Error</a></li>
56
+ <li class="tsd-kind-reference tsd-parent-kind-namespace"><a href="../modules/_internal_.__home_panta_dev_pantas_better_lock_src_errors_.html#BetterLockJobAbortedError" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-8388608-path"></use><use href="#icon-8388608-text"></use></svg>Better<wbr/>Lock<wbr/>Job<wbr/>Aborted<wbr/>Error</a></li>
57
+ <li class="tsd-kind-reference tsd-parent-kind-namespace"><a href="../modules/_internal_.__home_panta_dev_pantas_better_lock_src_errors_.html#BetterLockQueueOverflowError" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-8388608-path"></use><use href="#icon-8388608-text"></use></svg>Better<wbr/>Lock<wbr/>Queue<wbr/>Overflow<wbr/>Error</a></li>
58
+ <li class="tsd-kind-reference tsd-parent-kind-namespace"><a href="../modules/_internal_.__home_panta_dev_pantas_better_lock_src_errors_.html#BetterLockWaitTimeoutError" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-8388608-path"></use><use href="#icon-8388608-text"></use></svg>Better<wbr/>Lock<wbr/>Wait<wbr/>Timeout<wbr/>Error</a></li>
59
+ <li class="current tsd-kind-function tsd-parent-kind-namespace"><a href="_internal_.__home_panta_dev_pantas_better_lock_src_errors_.isAcquisitionFailureError.html" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-function)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="6" id="icon-64-path"></rect><path d="M9.39 16V7.24H14.55V8.224H10.446V11.128H14.238V12.112H10.47V16H9.39Z" fill="var(--color-text)" id="icon-64-text"></path></svg>is<wbr/>Acquisition<wbr/>Failure<wbr/>Error</a></li></ul></nav></div></div>
60
+ <div class="container tsd-generator">
61
+ <p>Generated using <a href="https://typedoc.org/" target="_blank">TypeDoc</a></p></div>
62
+ <div class="overlay"></div><script src="../assets/main.js"></script></body></html>