load

abstract fun <T : Any> load(key: ConfigKey<T>): T

Loads a configuration for key, applying migrations if needed.

Implementations should be resilient: when loading fails, return ConfigKey.defaultValue and log a diagnostic (platform-defined logging).