@types/async-lock
Advanced tools
Comparing version 1.3.0 to 1.4.0
@@ -1,2 +0,2 @@ | ||
// Type definitions for async-lock 1.3 | ||
// Type definitions for async-lock 1.4 | ||
// Project: https://github.com/rain1017/async-lock, https://github.com/rogierschouten/async-lock | ||
@@ -32,2 +32,8 @@ // Definitions by: Alejandro <https://github.com/afharo> | ||
/** | ||
* Max amount of time allowed between acquiring the lock and completing execution. | ||
* | ||
* @default 0 (Never) | ||
*/ | ||
maxExecutionTime?: number | undefined; | ||
/** | ||
* Make a lock reentrant in the same domain. | ||
@@ -84,5 +90,6 @@ * | ||
declare class AsyncLock { | ||
static readonly DEFAULT_TIMEOUT: number; | ||
static readonly DEFAULT_MAX_OCCUPATION_TIME: number; | ||
static readonly DEFAULT_MAX_PENDING: number; | ||
static readonly DEFAULT_TIMEOUT: 0; | ||
static readonly DEFAULT_MAX_OCCUPATION_TIME: 0; | ||
static readonly DEFAULT_MAX_EXECUTION_TIME: 0; | ||
static readonly DEFAULT_MAX_PENDING: 1000; | ||
@@ -89,0 +96,0 @@ constructor(options?: AsyncLock.AsyncLockOptions); |
{ | ||
"name": "@types/async-lock", | ||
"version": "1.3.0", | ||
"version": "1.4.0", | ||
"description": "TypeScript definitions for async-lock", | ||
@@ -38,4 +38,4 @@ "homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/async-lock", | ||
"dependencies": {}, | ||
"typesPublisherContentHash": "d405524ffc0f6249e60b80fb59fd46d14a4366ea0121d258119e5d0771bd8be3", | ||
"typeScriptVersion": "4.1" | ||
"typesPublisherContentHash": "28048c0c86a453be49d0ae54b48360f3b0735b8fc0deac9ddcd9e03325750563", | ||
"typeScriptVersion": "4.2" | ||
} |
@@ -11,3 +11,3 @@ # Installation | ||
### Additional Details | ||
* Last updated: Thu, 15 Sep 2022 21:32:49 GMT | ||
* Last updated: Mon, 06 Feb 2023 13:32:39 GMT | ||
* Dependencies: none | ||
@@ -14,0 +14,0 @@ * Global values: none |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
7928
152