Scoped configuration
Base.getindex — Method
getindex(cfg::ScopedConfig)Read the active value of a ScopedConfig: the innermost task-scoped override when inside a with_* block, otherwise the global default (read atomically).
Algorithm
- Read
cfg.scoped[], the innermost task-scoped override, givingnothingoutside everywith_*block. - When step 1 gives
nothing, readcfg.defaultatomically instead.
Returns
x::T: The active value of the configuration.
Related