()
| 92 | } |
| 93 | |
| 94 | protected override onSubscribe(): void { |
| 95 | if (this.listeners.size === 1) { |
| 96 | this.#observers.forEach((observer) => { |
| 97 | observer.subscribe((result) => { |
| 98 | this.#onUpdate(observer, result) |
| 99 | }) |
| 100 | }) |
| 101 | } |
| 102 | } |
| 103 | |
| 104 | protected override onUnsubscribe(): void { |
| 105 | if (!this.listeners.size) { |