Hierarchy

  • FlagConfigPoller

Implements

  • FlagConfigUpdater

Constructors

Properties

Methods

Constructors

Properties

Methods

  • Fetch initial flag configurations and start polling for updates.

    You must call this function to begin polling for flag config updates. The promise returned by this function is resolved when the initial call to fetch the flag configuration completes.

    Calling this function while the poller is already running does nothing.

    Parameters

    Returns Promise<void>

  • Stop polling for flag configurations.

    Calling this function while the poller is not running will do nothing.

    Returns void

  • Force a flag config fetch and cache the update with an optional callback which gets called if the flag configs change in any way.

    Parameters

    • Optional onChange: ((cache: FlagConfigCache) => Promise<void>)

      optional callback which will get called if the flag configs in the cache have changed.

    Returns Promise<void>