()
| 1113 | * Stop periodic refresh (for testing or cleanup) |
| 1114 | */ |
| 1115 | export function stopPeriodicGrowthBookRefresh(): void { |
| 1116 | if (refreshInterval) { |
| 1117 | clearInterval(refreshInterval) |
| 1118 | refreshInterval = null |
| 1119 | } |
| 1120 | if (beforeExitListener) { |
| 1121 | process.removeListener('beforeExit', beforeExitListener) |
| 1122 | beforeExitListener = null |
| 1123 | } |
| 1124 | } |
| 1125 | |
| 1126 | // ============================================================================ |
| 1127 | // Dynamic Config Functions |
no outgoing calls
no test coverage detected