(callback: Listener)
| 79 | } |
| 80 | |
| 81 | subscribe(callback: Listener): () => void { |
| 82 | this.listeners.add(callback) |
| 83 | return () => this.listeners.delete(callback) |
| 84 | } |
| 85 | |
| 86 | private scheduleNotify(): void { |
| 87 | if (this.rafId !== null) return |
no test coverage detected