Optionallogger: ILoggerEvaluates the flag against the current snapshot.
Flag name.
Optionalcontext: FlagContext
Targeting context.
Whether the flag is enabled.
Loads initial state ONCE and arms the poll interval ONCE.
Returns status: healthy when the last poll succeeded; degraded when it failed.
Stops the poll timer. Guards against stop()-before-arm (no-op if start was never called or the timer is already cleared).
Database-backed flag provider that polls an injected
IFlagStore.Loads initial state via
store.loadFlags()onstart(), then polls at a configurable interval. On poll failure, keeps the last good snapshot, logs via the injected logger, and exposes unhealthystatus().Example
Since
0.1.0