class UnsafeWeakRef<T>
WeakRef that getValue
for delegation throws an IllegalStateException if the referent is released by GC. Therefore it returns notnull value only
<init> |
WeakRef that UnsafeWeakRef(weakRef: WeakRef<T>) |
clear |
fun clear(): Unit |
get |
fun get(): T |
getValue |
Provides delegate value. operator fun <T> UnsafeWeakRef<T>.getValue(thisRef: Any?, property: KProperty<*>): T |