batch-cluster
Advanced tools
Comparing version 10.0.1 to 10.1.0
@@ -21,2 +21,6 @@ # Changelog | ||
## v10.1.0 | ||
- 📦 `.end()` and `.closeChildProcesses()` closes all child processes in parallel | ||
## v10.0.1 | ||
@@ -23,0 +27,0 @@ |
@@ -292,10 +292,7 @@ "use strict"; | ||
__classPrivateFieldGet(this, _BatchCluster_procs, "f").length = 0; | ||
for (const proc of procs) { | ||
try { | ||
await proc.end(gracefully, "ending"); | ||
} | ||
catch { | ||
// ignore: make sure all procs are ended | ||
} | ||
} | ||
await Promise.all(procs.map((proc) => { | ||
var _a; | ||
return (_a = proc | ||
.end(gracefully, "ending")) === null || _a === void 0 ? void 0 : _a.catch((err) => this.emitter.emit("endError", (0, Error_1.asError)(err))); | ||
})); | ||
} | ||
@@ -302,0 +299,0 @@ /** |
{ | ||
"name": "batch-cluster", | ||
"version": "10.0.1", | ||
"version": "10.1.0", | ||
"description": "Manage a cluster of child processes", | ||
@@ -40,5 +40,5 @@ "main": "dist/BatchCluster.js", | ||
"@types/mocha": "^9.1.0", | ||
"@types/node": "^17.0.17", | ||
"@typescript-eslint/eslint-plugin": "^5.11.0", | ||
"@typescript-eslint/parser": "^5.11.0", | ||
"@types/node": "^17.0.19", | ||
"@typescript-eslint/eslint-plugin": "^5.12.1", | ||
"@typescript-eslint/parser": "^5.12.1", | ||
"chai": "^4.3.6", | ||
@@ -50,3 +50,3 @@ "chai-as-promised": "^7.1.1", | ||
"eslint-plugin-import": "^2.25.4", | ||
"mocha": "^9.2.0", | ||
"mocha": "^9.2.1", | ||
"prettier": "^2.5.1", | ||
@@ -59,5 +59,5 @@ "rimraf": "^3.0.2", | ||
"timekeeper": "^2.2.0", | ||
"typedoc": "^0.22.11", | ||
"typedoc": "^0.22.12", | ||
"typescript": "^4.5.5" | ||
} | ||
} |
Sorry, the diff of this file is not supported yet
193909
2749