Called when assigning the value.
Called when assigning the value. This method removes any existing monitored Observables
, determines the new
Observables
from the supplied function f
, and monitors changes to any of those.
the function to monitor
T
Convenience method to wrap this Val
into a Var
.
Convenience method to get the current value.
Val, as the name suggests, is like a Scala
val
. This represents an immutable value that is set in the first place and then not modified. However, since the value set may be built fromObservables
, the generated value may change over time as its dependencies are modified. This class isObservable
and will only fire changes if the underlying value is derived from one or moreObservables
.the type of value retained by this
State