()
| 183 | } |
| 184 | |
| 185 | async initialize(): Promise<void> { |
| 186 | await this.refreshPolicy({ isStartup: true }); |
| 187 | |
| 188 | if (!this.refreshInterval) { |
| 189 | this.refreshInterval = setInterval(() => { |
| 190 | void this.refreshPolicy({ isStartup: false }); |
| 191 | }, POLICY_REFRESH_INTERVAL_MS); |
| 192 | this.refreshInterval.unref?.(); |
| 193 | } |
| 194 | } |
| 195 | |
| 196 | dispose(): void { |
| 197 | if (this.refreshInterval) { |
nothing calls this directly
no test coverage detected