WeakReference

An extractor for weak reference values

An extractor for weak reference values

Companion
class
class Object
trait Matchable
class Any

Value members

Concrete methods

def apply[T <: AnyRef](value: T): WeakReference[T]

Creates a weak reference pointing to value

Creates a weak reference pointing to value

def unapply[T <: AnyRef](wr: WeakReference[T]): Option[T]

Optionally returns the referenced value, or None if that value no longer exists

Optionally returns the referenced value, or None if that value no longer exists