@nsshunt/stsrunnerframework 1.0.63 → 1.0.64
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.
- package/dist/stsrunnerframework.mjs +50 -1
- package/dist/stsrunnerframework.mjs.map +1 -1
- package/dist/stsrunnerframework.umd.js +50 -1
- package/dist/stsrunnerframework.umd.js.map +1 -1
- package/package.json +1 -1
- package/types/wmworkerProcess.d.ts +1 -10
- package/types/wmworkerProcess.d.ts.map +1 -1
- package/types/workerManager.d.ts +9 -2
- package/types/workerManager.d.ts.map +1 -1
|
@@ -2445,12 +2445,61 @@ var __privateMethod = (obj, member, method) => (__accessCheck(obj, member, "acce
|
|
|
2445
2445
|
}
|
|
2446
2446
|
return busyWorker;
|
|
2447
2447
|
});
|
|
2448
|
+
__publicField(this, "StartAllWorkers", async () => {
|
|
2449
|
+
const promArray = [];
|
|
2450
|
+
for (const [, stsWorker] of Object.entries(this.WorkersEx)) {
|
|
2451
|
+
promArray.push(stsWorker.Start());
|
|
2452
|
+
}
|
|
2453
|
+
return await Promise.all(promArray);
|
|
2454
|
+
});
|
|
2448
2455
|
__publicField(this, "StopAllWorkers", async () => {
|
|
2449
2456
|
const promArray = [];
|
|
2450
2457
|
for (const [, stsWorker] of Object.entries(this.WorkersEx)) {
|
|
2451
2458
|
promArray.push(stsWorker.Stop());
|
|
2452
2459
|
}
|
|
2453
|
-
await Promise.all(promArray);
|
|
2460
|
+
return await Promise.all(promArray);
|
|
2461
|
+
});
|
|
2462
|
+
__publicField(this, "PauseAllWorkers", async () => {
|
|
2463
|
+
const promArray = [];
|
|
2464
|
+
for (const [, stsWorker] of Object.entries(this.WorkersEx)) {
|
|
2465
|
+
promArray.push(stsWorker.Pause());
|
|
2466
|
+
}
|
|
2467
|
+
return await Promise.all(promArray);
|
|
2468
|
+
});
|
|
2469
|
+
__publicField(this, "ResumeAllWorkers", async () => {
|
|
2470
|
+
const promArray = [];
|
|
2471
|
+
for (const [, stsWorker] of Object.entries(this.WorkersEx)) {
|
|
2472
|
+
promArray.push(stsWorker.Resume());
|
|
2473
|
+
}
|
|
2474
|
+
return await Promise.all(promArray);
|
|
2475
|
+
});
|
|
2476
|
+
__publicField(this, "ExecuteAllWorkers", async () => {
|
|
2477
|
+
const promArray = [];
|
|
2478
|
+
for (const [, stsWorker] of Object.entries(this.WorkersEx)) {
|
|
2479
|
+
promArray.push(stsWorker.Execute());
|
|
2480
|
+
}
|
|
2481
|
+
return await Promise.all(promArray);
|
|
2482
|
+
});
|
|
2483
|
+
__publicField(this, "ResetAllWorkers", async () => {
|
|
2484
|
+
const promArray = [];
|
|
2485
|
+
for (const [, stsWorker] of Object.entries(this.WorkersEx)) {
|
|
2486
|
+
promArray.push(stsWorker.Reset());
|
|
2487
|
+
}
|
|
2488
|
+
return await Promise.all(promArray);
|
|
2489
|
+
});
|
|
2490
|
+
__publicField(this, "UpdateAllWorkers", async (options) => {
|
|
2491
|
+
const promArray = [];
|
|
2492
|
+
for (const [, stsWorker] of Object.entries(this.WorkersEx)) {
|
|
2493
|
+
promArray.push(stsWorker.UpdateOptions(options));
|
|
2494
|
+
}
|
|
2495
|
+
return await Promise.all(promArray);
|
|
2496
|
+
});
|
|
2497
|
+
__publicField(this, "TerminateAllWorkers", async () => {
|
|
2498
|
+
const promArray = [];
|
|
2499
|
+
for (const [, stsWorker] of Object.entries(this.WorkersEx)) {
|
|
2500
|
+
promArray.push(stsWorker.Terminate());
|
|
2501
|
+
}
|
|
2502
|
+
return await Promise.all(promArray);
|
|
2454
2503
|
});
|
|
2455
2504
|
if (options) {
|
|
2456
2505
|
__privateSet(this, _options4, options);
|