Eager Singleton
fun <T : Any> EagerSingleton( builder: DIContainer.Builder, createdType: TypeToken<out T>, creator: NoArgBindingDI<Any>.() -> T)
Content copied to clipboard
Parameters
T
The created type.
created Type
The type of the created object.
creator
The function that will be called as soon as DI is ready. Guaranteed to be called only once. Should create a new instance.