SynchronizedLazyPropertyWrapper

class SynchronizedLazyPropertyWrapper<T, V : Any>(wrappedProperty: ReadOnlyProperty<T, V>) : ReadOnlyProperty<T, V>

Similar to lazy { } but uses a property instead of a lambda for building. Inspired by the SYNCHRONIZED lazy implementation.

Constructors

Link copied to clipboard
fun <T, V : Any> SynchronizedLazyPropertyWrapper(wrappedProperty: ReadOnlyProperty<T, V>)

Functions

Link copied to clipboard
open operator override fun getValue(thisRef: T, property: KProperty<*>): V