Convenience method to send a value to set
similarly to an assignment operator.
Convenience method to send a value to set
similarly to an assignment operator.
the value to apply
Casts this instance as a Channel[T].
Casts this instance as a Channel[T]. This is useful for representing sub-classes explicitly as a Channel.
Channel[T]
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
Sets the value on this Var
.
Convenience method to pre-evaluate the value instead of as an anonymous function.
Convenience method to pre-evaluate the value instead of as an anonymous function.
the value to be set
Convenience method to wrap this Var
into a Val
.
Convenience method to get the current value.
Convenience method to set the current value like a variable.
Var, as the name suggests, is very similar to a Scala
var
. The value is defined during instantiation, but may be modified later. The value may be a static value, or may be a derived value depending on multipleObservables
. IfObservables
make up the value they will be monitored and events fired on thisObservable
as the value changes.the type of value this channel receives