Evt
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
- Graph
-
- Supertypes
-
trait Event[T]trait Disconnectabletrait Source[T]trait ReSourceclass Objecttrait Matchableclass AnyShow all
Members list
Grouped members
internal
conversion
Counts the occurrences of the event. The argument of the event is discarded. Always starts from 0 when the count is created (no matter how often the event has activated in the past).
Counts the occurrences of the event. The argument of the event is discarded. Always starts from 0 when the count is created (no matter how often the event has activated in the past).
Attributes
- Inherited from:
- Event
returns a signal holding the latest value of the event.
returns a signal holding the latest value of the event.
returns a signal holding the latest value of the event.
Value parameters
- init
-
initial value of the returned signal
Attributes
- Inherited from:
- Event
Holds the latest value of an event as an Option, None before the first event occured
Holds the latest value of an event as an Option, None before the first event occured
Attributes
- Inherited from:
- Event
Applies a function on the current value of the signal every time the event occurs, starting with the init value before the first event occurrence
Applies a function on the current value of the signal every time the event occurs, starting with the init value before the first event occurrence
Attributes
- Inherited from:
- Event
collects events resulting in a variable holding a list of all values.
collects events resulting in a variable holding a list of all values.
Attributes
- Inherited from:
- Event
Returns a signal which holds the last n events in a list. At the beginning the list increases in size up to when n values are available
Returns a signal which holds the last n events in a list. At the beginning the list increases in size up to when n values are available
Attributes
- Inherited from:
- Event
Switch back and forth between two signals on occurrence of event e
conversion
Folds events with a given operation to create a Signal.
accessor
Add an observer.
Add an observer.
Attributes
- Returns
-
the resulting rescala.structure.Observe can be used to remove the observer.
- Inherited from:
- Event
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
Filters the event, only propagating the value when the filter is true.
Filters the event, only propagating the value when the filter is true.
Attributes
- Inherited from:
- Event
Collects the results from a partial function
Propagates the event only when the other event exception
does not fire.
Propagates the event only when the other event exception
does not fire.
Attributes
- Inherited from:
- Event
Filters the event, only propagating the value when the filter is true.
Filters the event, only propagating the value when the filter is true.
Attributes
- Inherited from:
- Event
Flattens the inner value.
Transform the event.
Like map, but allows to ignore the parameter if its type is Unit. Useful for snapshotting some signals when an event triggers
Like map, but allows to ignore the parameter if its type is Unit. Useful for snapshotting some signals when an event triggers
Attributes
- Inherited from:
- Event
Events disjunction. Propagates the values if any of the events fires. Only propagates the left event if both fire.
Events disjunction. Propagates the values if any of the events fires. Only propagates the left event if both fire.
Attributes
- Inherited from:
- Event
Value members
Concrete methods
Attributes
- Definition Classes
Attributes
- Definition Classes
Inherited methods
Attributes
- Inherited from:
- Source
Uses a partial function onFailure
to recover an error carried by the event into a value when returning Some(value), or filters the error when returning None
Uses a partial function onFailure
to recover an error carried by the event into a value when returning Some(value), or filters the error when returning None
Attributes
- Inherited from:
- Event