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.
@@ -385,8 +385,8 @@ var Caching = class {
385
385
  /**
386
386
  * Clears every cache and stops its expiry timer.
387
387
  *
388
- * loading-cache reschedules that timer indefinitely, so a Node process will not exit until
389
- * this is called - see {@link shutdown}.
388
+ * Expiry timers are unref'd in Node, so idle processes can exit without this cleanup.
389
+ * Use {@link shutdown} to also stop requests and the shared Ticker.
390
390
  */
391
391
  static end() {
392
392
  for (const cache of this.all) {
@@ -634,13 +634,14 @@ var _Requests = class _Requests {
634
634
  }
635
635
  static get queueSizes() {
636
636
  return {
637
- generic: this.genericQueue.size,
638
- mcAsset: this.mcAssetRequestQueue.size
637
+ generic: this.genericQueue.size + this.genericQueue.activeSize,
638
+ mcAsset: this.mcAssetRequestQueue.size + this.mcAssetRequestQueue.activeSize
639
639
  };
640
640
  }
641
641
  /**
642
- * Stops both queue timers. jobqu reschedules itself indefinitely, so a Node process will not
643
- * exit until this is called - see {@link shutdown}.
642
+ * Permanently stops both queues and rejects waiting and future requests.
643
+ * Requests already running can finish. Idle queues hold no timer, so Node can exit without
644
+ * this cleanup. See {@link shutdown}.
644
645
  */
645
646
  static end() {
646
647
  this.genericQueue.end();