WeakRef

external class WeakRef<T : Any>(target: T)(source)

Constructors

Link copied to clipboard
constructor(target: T)

Functions

Link copied to clipboard
fun deref(): T?

Returns the WeakRef instance's target object, or undefined if the target object has been reclaimed.