WeakReference

constructor(referred: T)(source)

Creates a weak reference object pointing to an object. Weak reference doesn't prevent removing object, and is nullified once object is collected.