()
| 217 | * The timer is unref'd so it won't prevent process exit. |
| 218 | */ |
| 219 | export function startPeriodicUpdateCheck(): void { |
| 220 | if (isDevEnvironment()) return |
| 221 | refreshCacheInBackground(readCache()) |
| 222 | const timer = setInterval(() => { |
| 223 | refreshCacheInBackground(readCache()) |
| 224 | }, PERIODIC_CHECK_MS) |
| 225 | timer.unref() |
| 226 | } |
| 227 | |
| 228 | /** |
| 229 | * Check for updates and prompt user interactively. |
no test coverage detected