[@types/async-lock] Add missing skipQueue attr to the AsyncLockOptions (#43767)

This commit is contained in:
Maksymilian Chmiel
2020-04-10 20:22:25 -07:00
committed by GitHub
parent 71f6d8f937
commit 5e8098e52f
2 changed files with 3 additions and 0 deletions
+1
View File
@@ -27,3 +27,4 @@ lock.isBusy('key');
const lock2 = new AsyncLock({ timeout : 5000 });
const lock3 = new AsyncLock({ maxPending : 5000 });
const lock4 = new AsyncLock({ Promise: null });
const lock5 = new AsyncLock({ skipQueue: true });
+2
View File
@@ -3,6 +3,7 @@
// Definitions by: Elisée MAURER <https://github.com/elisee>
// Alejandro <https://github.com/afharo>
// Anatoly <https://github.com/rhymmor>
// Humulus <https://github.com/humulus>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 2.1
@@ -13,6 +14,7 @@ interface AsyncLockOptions {
maxPending?: number;
domainReentrant?: boolean;
Promise?: any;
skipQueue?: boolean;
}
declare class AsyncLock {