commonMain.utils.ResettableDelegate.kt Maven / Gradle / Ivy
package org.openrndr.utils
import kotlin.reflect.KProperty
fun resettableLazy(initializer: () -> T) = ResettableDelegate(initializer)
expect class ResettableDelegate(initializer: () -> T) {
operator fun getValue(thisRef: Any?, property: KProperty<*>): T
fun reset()
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy