Returns the discrete version of changed
.
Returns the discrete version of changed
. Will emit Unit
when the value
is changed.
Returns the continuous version of this signal, always equal to the
current A
inside value
.
Returns the continuous version of this signal, always equal to the
current A
inside value
.
Note that this may not see all changes of A
as it
gets always current fresh A
at every request.
Returns the discrete version stream of this signal, updated only when value
is changed.
Returns the discrete version stream of this signal, updated only when value
is changed.
Value _may_ change several times between reads, but it is guaranteed this will always get latest known value after any change.
If you want to be notified about every single change use async.queue
for signalling.
It will emit the current value of the Signal after being run or when the signal is set for the first time
Asynchronously get the current value of this Signal
Asynchronously get the current value of this Signal
Asynchronously sets the current value of this Signal
and returns new value of this Signal
.
Asynchronously sets the current value of this Signal
and returns new value of this Signal
.
op
is consulted to set this signal. It is supplied with current value to either
set the value (returning Some) or no-op (returning None)
F
returns the result of applying op
to current value.
Asynchronously refreshes the value of the signal,
keep the value of this Signal
the same, but notify any listeners.
Sets the value of this Signal
.
A signal whose value may be set asynchronously. Provides continuous and discrete streams for responding to changes to it's value.