@poe-platform/safe-bash 0.1.63 → 0.1.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.
@@ -16445,6 +16445,7 @@ var Budget3 = class {
16445
16445
  maxBufferBytes;
16446
16446
  remaining;
16447
16447
  checkpoints = 0;
16448
+ lastYield = monotonicNow();
16448
16449
  step(count2 = 1) {
16449
16450
  this.context.signal.throwIfAborted();
16450
16451
  this.remaining -= count2;
@@ -16455,7 +16456,11 @@ var Budget3 = class {
16455
16456
  return text;
16456
16457
  }
16457
16458
  async checkpoint() {
16458
- if (++this.checkpoints % 256 === 0) await yieldTurn(this.context.signal);
16459
+ this.context.signal.throwIfAborted();
16460
+ if (++this.checkpoints % 256 === 0 || monotonicNow() - this.lastYield >= 25) {
16461
+ await yieldTurn(this.context.signal);
16462
+ this.lastYield = monotonicNow();
16463
+ }
16459
16464
  this.context.signal.throwIfAborted();
16460
16465
  }
16461
16466
  };