ktp / toothpick.ktp.delegate / lazy

lazy

inline fun <reified T : Any> lazy(): LazyDelegateProvider<T>

Parameters

T - the type of the thing to inject, the key of the binding.

Return
a property delegate that will inject a lazy.

inline fun <reified T : Any> lazy(name: String): LazyDelegateProvider<T>
inline fun <reified T : Any> lazy(name: KClass<out Annotation>): LazyDelegateProvider<T>

Parameters

T - the type of the thing to inject, the key of the binding.

name - a nullable name to designate a specific named binding.

Return
a property delegate that will inject a lazy.