Entry

inner class Entry<T : Any>(loader: () -> T, threadSafetyMode: LazyThreadSafetyMode) : ParamlessServiceEntry<T>

The ServiceEntry for a LazyKey. It holds the provider lambda and the created service.

It includes a check for circular dependencies. If this entry is re-entered while its own service is being initialized, it indicates a dependency loop, which will result in an IllegalStateException.

Constructors

Link copied to clipboard
constructor(loader: () -> T, threadSafetyMode: LazyThreadSafetyMode)

Properties

Link copied to clipboard
open override val service: T