Generated with
Copyright (c) 2002-2026, LAMP/EPFL
Copyright (c) 2002-2026, LAMP/EPFL
scala.ref.WeakReference
See theWeakReference companion class
An extractor for weak reference values.
Members list
Creates a weak reference pointing to value.
Creates a weak reference pointing to value.
Type parameters
- T
-
the type of the value to wrap in a weak reference
Value parameters
- value
-
the object to be weakly referenced
Attributes
- Source
-
WeakReference.scala
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.
Type parameters
- T
-
the type of the value to extract from the weak reference
Value parameters
- wr
-
the weak reference to extract a value from
Attributes
- Source
-
WeakReference.scala