* @param {boolean} blocking * @param {Effect} effect
(blocking, effect)
| 794 | * @param {Effect} effect |
| 795 | */ |
| 796 | decrement(blocking, effect) { |
| 797 | this.#pending -= 1; |
| 798 | |
| 799 | if (blocking) { |
| 800 | let blocking_pending_count = this.#blocking_pending.get(effect) ?? 0; |
| 801 | |
| 802 | if (blocking_pending_count === 1) { |
| 803 | this.#blocking_pending.delete(effect); |
| 804 | } else { |
| 805 | this.#blocking_pending.set(effect, blocking_pending_count - 1); |
| 806 | } |
| 807 | } |
| 808 | |
| 809 | if (this.#decrement_queued) return; |
| 810 | this.#decrement_queued = true; |
| 811 | |
| 812 | queue_micro_task(() => { |
| 813 | this.#decrement_queued = false; |
| 814 | |
| 815 | if (this.linked) { |
| 816 | this.flush(); |
| 817 | } |
| 818 | }); |
| 819 | } |
| 820 | |
| 821 | /** |
| 822 | * @param {Set<Effect>} dirty_effects |
no test coverage detected