Evaluates whether a flag is enabled.
Flag name.
Optionalcontext: FlagContext
Targeting context.
true when the flag is on; unknown flags → false.
Evaluates a flag, awaiting the provider when it can answer asynchronously.
Both entry points funnel through the SAME provider instance, so a
configured option — fallbackValue above all — governs identically whether
a caller reaches for the synchronous or the asynchronous method. A provider
with no async path resolves its synchronous evaluation, which for a purely
local snapshot is already the correct answer.
Flag name.
Optionalcontext: FlagContext
Targeting context.
true when the flag is on; unknown flags → false.
Starts the underlying provider (pulls initial state).
Forwards the provider's optional health status.
Status when the provider exposes status(), else undefined.
Stops the underlying provider (releases timers / connections).
Feature flag service that delegates to a single
FlagProvider.Implements the synchronous
IFeatureFlagscontract; the provider owns a cached snapshot and refreshes it out of band via its own async lifecycle.Example
Since
0.1.0