reactives.operator
Members list
Grouped members
create
Similar to reactives.operator.Signal expressions, but resulting in an event. Accessed events return options depending on whether they fire or not, and the complete result of the expression is an event as well.
Similar to reactives.operator.Signal expressions, but resulting in an event. Accessed events return options depending on whether they fire or not, and the complete result of the expression is an event as well.
Attributes
A signal expression can be used to create signals accessing arbitrary other signals. Use the apply method on a signal to access its value inside of a signal expression.
A signal expression can be used to create signals accessing arbitrary other signals. Use the apply method on a signal to access its value inside of a signal expression.
val a: Signal[Int]
val b: Signal[Int]
val result: Signal[String] = Signal { a().toString + b().toString}
Attributes
Type members
Classlikes
Events only propagate a value when they are changing, when the system is at rest, events have no values.
Events only propagate a value when they are changing, when the system is at rest, events have no values.
Note: We hide using parameters of the API in the documentation. They are used to ensure correct creation, and you normally do not have to worry about them, except if you accidentally call the using parameter list, in which cas you may get cryptic errors. This is a scala limitation. We also hide the internal state parameter of passed and returned events.
Type parameters
- T
-
Value type of the event occurrences.
Attributes
Source events with imperative occurrences
Source events with imperative occurrences
Type parameters
- S
-
Struct type used for the propagation of the event
- T
-
Type returned when the event fires
Value parameters
- initialState
-
of by the event
Attributes
- Companion
- object
- Supertypes
-
trait Event[T]trait Disconnectabletrait Source[T]trait ReSourceclass Objecttrait Matchableclass AnyShow all
Folds when any one of a list of events occurs, if multiple events occur, every fold is executed in order.
Folds when any one of a list of events occurs, if multiple events occur, every fold is executed in order.
Example for a counter that can be reset:
Fold(0)(
add act { x => Fold.current + v },
reset act { _ => 0 }
)
Attributes
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
Fold.type
Attributes
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
FoldState.type
Time changing value derived from the dependencies.
Time changing value derived from the dependencies.
Type parameters
- T
-
Type stored by the signal
Attributes
- Companion
- object
- Supertypes
-
trait MacroAccess[T]trait ReadAs[T]trait ReSourcetrait Disconnectableclass Objecttrait Matchableclass AnyShow all
- Known subtypes
-
class Var[A]
Source signals with imperatively updates.
Source signals with imperatively updates.
Type parameters
- A
-
Type stored by the signal
Attributes
- Companion
- object
- Supertypes
-
trait Signal[A]trait MacroAccess[A]trait ReadAs[A]trait Disconnectabletrait Source[A]trait ReSourceclass Objecttrait Matchableclass AnyShow all