@nsshunt/stsrunnerframework 1.0.143 → 1.0.144

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.
@@ -2958,7 +2958,12 @@ class STSWorkerManager {
2958
2958
  }
2959
2959
  });
2960
2960
  __privateAdd(this, _PauseWorker, async (workerEx) => {
2961
- return __privateGet(this, _BroadcastCommandToAllRunners).call(this, workerEx, __privateGet(this, _PauseRunner2));
2961
+ const runners = Object.values(workerEx.runnersEx);
2962
+ const promArray = [];
2963
+ for (let i = 0; i < runners.length; i++) {
2964
+ promArray.push(runners[i].Pause());
2965
+ }
2966
+ return Promise.all(promArray);
2962
2967
  });
2963
2968
  __privateAdd(this, _ResumeWorker, (workerEx) => {
2964
2969
  return __privateGet(this, _BroadcastCommandToAllRunners).call(this, workerEx, __privateGet(this, _ResumeRunner2));