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
.
f
is consulted to set this signal.
F
returns the result of applying op
to current value.
like modify
but allows to extract B
from A
and return it together with Change
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
.
Returns an alternate view of this Signal
where its elements are of type B,
given a function from A
to B
.
A signal whose value may be set asynchronously. Provides continuous and discrete streams for responding to changes to it's value.