Group of 2 Under the hood
The remote settings and GrowthBook clients now detect process exit and stop their periodic background refresh
What
- The remote settings/eval class now tracks
processExitListenerInstalledandprocessExitedflags, along with anonProcessExithandler that marks itself as exited and stops its periodic refresh. A related class also gained abackstopReleasedflag, set when a load-promise safety timeout expires and resolves anyway. - The GrowthBook client's
createClient()now installs a one-time processexitlistener, and itsstartPeriodicRefresh()now checks the newprocessExitedflag before starting any refresh loop.
Why
This stops these clients from trying to do background refresh work after the process has already exited, avoiding wasted work or errors during shutdown.