@xuda.io/runtime-bundle 1.0.823 → 1.0.825

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.
@@ -8436,6 +8436,7 @@ func.UI.worker.init = async function (SESSION_ID) {
8436
8436
  };
8437
8437
 
8438
8438
  let last_job_in_queue = 0;
8439
+ let run_stat;
8439
8440
  const job_iterator = async function () {
8440
8441
  let from_job_num_to_run = last_job_in_queue;
8441
8442
  last_job_in_queue = UI_WORKER_OBJ.num - from_job_num_to_run;
@@ -8476,14 +8477,18 @@ func.UI.worker.init = async function (SESSION_ID) {
8476
8477
 
8477
8478
  this.attempt++;
8478
8479
  }
8479
- return job_iterator();
8480
+ // return job_iterator();
8481
+ run_stat = 0;
8480
8482
  };
8481
- job_iterator();
8482
- // this._interval = setInterval(() => {
8483
- // if (typeof UI_WORKER_OBJ.stat === 'undefined' || UI_WORKER_OBJ.stat === 'undefined' || UI_WORKER_OBJ.stat === null) {
8484
- // job_iterator();
8485
- // }
8486
- // }, 1);
8483
+ // job_iterator();
8484
+ this._interval = setInterval(() => {
8485
+ if (!run_stat) {
8486
+ run_stat = 1;
8487
+ job_iterator();
8488
+ }
8489
+ }, 1);
8490
+
8491
+ // this._interval = setInterval(job_iterator, 1);
8487
8492
 
8488
8493
  setInterval(async function () {
8489
8494
  func.UI.ds_garbage_collector();
@@ -8437,6 +8437,7 @@ func.UI.worker.init = async function (SESSION_ID) {
8437
8437
  };
8438
8438
 
8439
8439
  let last_job_in_queue = 0;
8440
+ let run_stat;
8440
8441
  const job_iterator = async function () {
8441
8442
  let from_job_num_to_run = last_job_in_queue;
8442
8443
  last_job_in_queue = UI_WORKER_OBJ.num - from_job_num_to_run;
@@ -8477,14 +8478,18 @@ func.UI.worker.init = async function (SESSION_ID) {
8477
8478
 
8478
8479
  this.attempt++;
8479
8480
  }
8480
- return job_iterator();
8481
+ // return job_iterator();
8482
+ run_stat = 0;
8481
8483
  };
8482
- job_iterator();
8483
- // this._interval = setInterval(() => {
8484
- // if (typeof UI_WORKER_OBJ.stat === 'undefined' || UI_WORKER_OBJ.stat === 'undefined' || UI_WORKER_OBJ.stat === null) {
8485
- // job_iterator();
8486
- // }
8487
- // }, 1);
8484
+ // job_iterator();
8485
+ this._interval = setInterval(() => {
8486
+ if (!run_stat) {
8487
+ run_stat = 1;
8488
+ job_iterator();
8489
+ }
8490
+ }, 1);
8491
+
8492
+ // this._interval = setInterval(job_iterator, 1);
8488
8493
 
8489
8494
  setInterval(async function () {
8490
8495
  func.UI.ds_garbage_collector();