lazy
inline fun <T> Config.lazy(prefix: String = "", name: String? = null, description: String = "", noinline thunk: (config: ItemContainer) -> T): LazyConfigProperty<T>
Content copied to clipboard
Returns a property that can read/set associated value for specified lazy item.
Return
a property that can read/set associated value for specified lazy item
Parameters
prefix
prefix for the config item
name
item name without prefix
description
description for this item
thunk
thunk used to evaluate value for this item
inline fun <T> Spec.lazy(name: String? = null, description: String = "", noinline thunk: (config: ItemContainer) -> T): LazyProperty<T>
Content copied to clipboard
Specify a lazy item in this config spec.
Return
a property of a lazy item with prefix of this config spec
Parameters
name
item name without prefix
description
description for this item
thunk
thunk used to evaluate value for this item