mol_wire_lib 1.0.175 → 1.0.176

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.
package/node.js CHANGED
@@ -586,9 +586,12 @@ var $;
586
586
  }
587
587
  static sync() {
588
588
  while (this.planning.size) {
589
- const fibers = this.planning;
590
- this.planning = new Set;
591
- for (const fiber of fibers) {
589
+ for (const fiber of this.planning) {
590
+ this.planning.delete(fiber);
591
+ if (fiber.cursor >= 0)
592
+ continue;
593
+ if (fiber.cursor === $mol_wire_cursor.final)
594
+ continue;
592
595
  fiber.refresh();
593
596
  }
594
597
  }