@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.
@@ -2456,12 +2456,61 @@ class STSWorkerManager {
2456
2456
  }
2457
2457
  return busyWorker;
2458
2458
  });
2459
+ __publicField(this, "StartAllWorkers", async () => {
2460
+ const promArray = [];
2461
+ for (const [, stsWorker] of Object.entries(this.WorkersEx)) {
2462
+ promArray.push(stsWorker.Start());
2463
+ }
2464
+ return await Promise.all(promArray);
2465
+ });
2459
2466
  __publicField(this, "StopAllWorkers", async () => {
2460
2467
  const promArray = [];
2461
2468
  for (const [, stsWorker] of Object.entries(this.WorkersEx)) {
2462
2469
  promArray.push(stsWorker.Stop());
2463
2470
  }
2464
- await Promise.all(promArray);
2471
+ return await Promise.all(promArray);
2472
+ });
2473
+ __publicField(this, "PauseAllWorkers", async () => {
2474
+ const promArray = [];
2475
+ for (const [, stsWorker] of Object.entries(this.WorkersEx)) {
2476
+ promArray.push(stsWorker.Pause());
2477
+ }
2478
+ return await Promise.all(promArray);
2479
+ });
2480
+ __publicField(this, "ResumeAllWorkers", async () => {
2481
+ const promArray = [];
2482
+ for (const [, stsWorker] of Object.entries(this.WorkersEx)) {
2483
+ promArray.push(stsWorker.Resume());
2484
+ }
2485
+ return await Promise.all(promArray);
2486
+ });
2487
+ __publicField(this, "ExecuteAllWorkers", async () => {
2488
+ const promArray = [];
2489
+ for (const [, stsWorker] of Object.entries(this.WorkersEx)) {
2490
+ promArray.push(stsWorker.Execute());
2491
+ }
2492
+ return await Promise.all(promArray);
2493
+ });
2494
+ __publicField(this, "ResetAllWorkers", async () => {
2495
+ const promArray = [];
2496
+ for (const [, stsWorker] of Object.entries(this.WorkersEx)) {
2497
+ promArray.push(stsWorker.Reset());
2498
+ }
2499
+ return await Promise.all(promArray);
2500
+ });
2501
+ __publicField(this, "UpdateAllWorkers", async (options) => {
2502
+ const promArray = [];
2503
+ for (const [, stsWorker] of Object.entries(this.WorkersEx)) {
2504
+ promArray.push(stsWorker.UpdateOptions(options));
2505
+ }
2506
+ return await Promise.all(promArray);
2507
+ });
2508
+ __publicField(this, "TerminateAllWorkers", async () => {
2509
+ const promArray = [];
2510
+ for (const [, stsWorker] of Object.entries(this.WorkersEx)) {
2511
+ promArray.push(stsWorker.Terminate());
2512
+ }
2513
+ return await Promise.all(promArray);
2465
2514
  });
2466
2515
  if (options) {
2467
2516
  __privateSet(this, _options4, options);