@travetto/exec
Advanced tools
Comparing version 0.3.5 to 0.3.6
@@ -11,3 +11,3 @@ { | ||
"dependencies": { | ||
"@travetto/base": "^0.3.6", | ||
"@travetto/base": "^0.3.7", | ||
"@types/generic-pool": "^3.1.4", | ||
@@ -31,4 +31,4 @@ "generic-pool": "^3.4.2" | ||
}, | ||
"version": "0.3.5", | ||
"gitHead": "1dc2f5764a2286dd9237a906f6aa1b3cc1305800" | ||
"version": "0.3.6", | ||
"gitHead": "a97a54d48f681c8a3c265803ab1f8d8da1690f39" | ||
} |
@@ -13,2 +13,8 @@ import * as os from 'os'; | ||
constructor(private create: () => Promise<T>, opts?: Options) { | ||
const args = { | ||
max: os.cpus().length - 1, | ||
min: 1, | ||
...(opts || {}) | ||
}; | ||
this.pool = createPool({ | ||
@@ -23,7 +29,3 @@ create, | ||
} | ||
}, { | ||
max: os.cpus().length - 1, | ||
min: 1, | ||
...(opts || {}) | ||
}); | ||
}, args); | ||
@@ -30,0 +32,0 @@ Shutdown.onShutdown(ExecutionPool.name, () => this.shutdown()); |
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
30908
818
Updated@travetto/base@^0.3.7