Lamina.Server.Impl.get_latest_value
You're seeing just the function
get_latest_value
, go back to Lamina.Server.Impl module for more information.
Link to this function
get_latest_value(provider, config_key, state)
Specs
get_latest_value(provider(), config_key(), Lamina.Server.State.t()) :: {:ok, Lamina.Server.State.t()} | {:ok, Lamina.Server.ConfigValue.t(), Lamina.Server.State.t()} | {:error, any()}
Query provider
for the latest config_key
.
If the provider has a new value, and it is different to the old value, then broadcast the change to subscribers, and call the config module's config_change/3
callback.