minerender 2.1.0-alpha.6 → 2.1.0-alpha.7

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.
@@ -422,8 +422,8 @@ var Caching = class {
422
422
  /**
423
423
  * Clears every cache and stops its expiry timer.
424
424
  *
425
- * loading-cache reschedules that timer indefinitely, so a Node process will not exit until
426
- * this is called - see {@link shutdown}.
425
+ * Expiry timers are unref'd in Node, so idle processes can exit without this cleanup.
426
+ * Use {@link shutdown} to also stop requests and the shared Ticker.
427
427
  */
428
428
  static end() {
429
429
  for (const cache of this.all) {
@@ -671,13 +671,14 @@ var _Requests = class _Requests {
671
671
  }
672
672
  static get queueSizes() {
673
673
  return {
674
- generic: this.genericQueue.size,
675
- mcAsset: this.mcAssetRequestQueue.size
674
+ generic: this.genericQueue.size + this.genericQueue.activeSize,
675
+ mcAsset: this.mcAssetRequestQueue.size + this.mcAssetRequestQueue.activeSize
676
676
  };
677
677
  }
678
678
  /**
679
- * Stops both queue timers. jobqu reschedules itself indefinitely, so a Node process will not
680
- * exit until this is called - see {@link shutdown}.
679
+ * Permanently stops both queues and rejects waiting and future requests.
680
+ * Requests already running can finish. Idle queues hold no timer, so Node can exit without
681
+ * this cleanup. See {@link shutdown}.
681
682
  */
682
683
  static end() {
683
684
  this.genericQueue.end();