Source signals with imperatively updates.
Type parameters
- A
-
Type stored by the signal
Attributes
- Companion
- object
- Graph
-
- Supertypes
-
trait Signal[A]trait MacroAccess[A]trait ReadAs[A]trait Disconnectabletrait Source[A]trait ReSourceclass Objecttrait Matchableclass AnyShow all
Members list
Grouped members
internal
conversion
Create an event that fires every time the signal changes. It fires the tuple (oldVal, newVal) for the signal. Be aware that no change will be triggered when the signal changes to or from empty
Create an event that fires every time the signal changes. It fires the tuple (oldVal, newVal) for the signal. Be aware that no change will be triggered when the signal changes to or from empty
Attributes
- Inherited from:
- Signal
Create an event that fires every time the signal changes. The value associated to the event is the new value of the signal
Create an event that fires every time the signal changes. The value associated to the event is the new value of the signal
Attributes
- Inherited from:
- Signal
accessor
Returns the current value of the signal However, using now is in most cases not what you want. It does not build dependencies, does not integrate into transactions. Use only for examples and debug output.
Returns the current value of the signal However, using now is in most cases not what you want. It does not build dependencies, does not integrate into transactions. Use only for examples and debug output.
Attributes
- Inherited from:
- Signal
add an observer
Returns the current value of the signal
Makes the enclosing reactive expression depend on the current value of the reactive.
Makes the enclosing reactive expression depend on the current value of the reactive.
Attributes
- See also
-
apply
- Inherited from:
- MacroAccess
operator
Flattens the inner value.
Return a Signal with f applied to the value
Sets a default value in case this signal is empty.
Value members
Concrete methods
Attributes
- Definition Classes
Inherited methods
Adds another error message in case this signal is empty, also disallows handling exceptions in observers
Adds another error message in case this signal is empty, also disallows handling exceptions in observers
Attributes
- Inherited from:
- Signal
Attributes
- Inherited from:
- Source
Uses a partial function onFailure
to recover an error carried by the event into a value.
Uses a partial function onFailure
to recover an error carried by the event into a value.
Attributes
- Inherited from:
- Signal
Givens
Inherited givens
Attributes
- Inherited from:
- Signal