lazy
fun lazy(allowSilentOverride: Boolean = false, init: DI.MainBuilder.() -> Unit): LazyDI
Content copied to clipboard
Creates a DI instance that will be lazily created upon first access.
Return
A lazy property that will yield, when accessed, the new DI object, freshly created, and ready for hard work!
Parameters
allow Silent Override
Whether the configuration block is allowed to non-explicit overrides.
init
The block of configuration.