SignalImpl

rescala.operator.DefaultImplementations.SignalImpl
class SignalImpl[T](initial: State[Pulse[T]], expr: (DynamicTicket, () => T) => T, name: ReInfo, isDynamicWithStaticDeps: Option[Set[of[State]]]) extends DerivedImpl[T] with Signal[T]

Attributes

isDynamicWithStaticDeps

None means static dependencies only, Some means dynamic with the given static ones for optimization

Graph
Supertypes
trait Signal[T]
trait SignalCompat[T]
trait MacroAccess[T, ReadAs[State, T]]
trait ReadAs[State, T]
class DerivedImpl[T]
trait Derived
class Base[State, Pulse[T]]
trait ReSource
class Object
trait Matchable
class Any

Members list

Concise view

internal

override def read(v: Value): T

Interprets the internal type to the external type

Interprets the internal type to the external type

Attributes

Definition Classes
Inherited from:
Signal

conversion

final def change(implicit ticket: CreationTicket): Event[Diff[T]]

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
final def changed(implicit ticket: CreationTicket): Event[T]

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
final def changedTo[V >: T](value: V)(implicit ticket: CreationTicket): Event[Unit]

Convenience function filtering to events which change this reactive to value

Convenience function filtering to events which change this reactive to value

Attributes

Inherited from:
Signal

accessor

final def apply(): A

Makes the enclosing reactive expression depend on the current value of the reactive. Is an alias for value.

Makes the enclosing reactive expression depend on the current value of the reactive. Is an alias for value.

Attributes

See also:

value

Inherited from:
MacroAccess
final def now(implicit scheduler: Scheduler[State]): T

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
final def observe(onValue: T => Unit, onError: Throwable => Unit, fireImmediately: Boolean)(implicit ticket: CreationTicket): Disconnectable

add an observer

add an observer

Attributes

Inherited from:
Signal
final def readValueOnce(implicit scheduler: Scheduler[State]): T

Returns the current value of the signal

Returns the current value of the signal

Attributes

Inherited from:
Signal
final def value: A

Makes the enclosing reactive expression depend on the current value of the reactive. Is an alias for rescala.macros.MacroAccess.apply.

Makes the enclosing reactive expression depend on the current value of the reactive. Is an alias for rescala.macros.MacroAccess.apply.

Attributes

See also:

apply

Inherited from:
MacroAccess

operator

final def flatten[R](implicit flatten: Flatten[Signal[T], R]): R

Flattens the inner value.

Flattens the inner value.

Attributes

Inherited from:
Signal
final inline def map[B](inline expression: T => B)(implicit ct: CreationTicket): Signal[B]

Return a Signal with f applied to the value

Return a Signal with f applied to the value

Attributes

Inherited from:
SignalCompat

Type members

Inherited types

final type ReIn = ReevTicket[State, Value]

Attributes

Inherited from:
Derived
final type Rout = of[State, Value]

Attributes

Inherited from:
Derived
override type State[V] = State[V]

Attributes

Inherited from:
Signal
override type Value = V

Attributes

Inherited from:
Base

Value members

Inherited methods

final def abortOnError(message: String)(implicit ticket: CreationTicket): Signal[T]

Attributes

Inherited from:
Signal
final def disconnect(): Unit

Attributes

Inherited from:
DisconnectableImpl
final def recover[R >: T](onFailure: PartialFunction[Throwable, R])(implicit ticket: CreationTicket): Signal[R]

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

Attributes

Inherited from:
Signal
override def toString: String

Returns a string representation of the object.

Returns a string representation of the object.

The default representation is platform dependent.

Attributes

Returns:

a string representation of the object.

Definition Classes
Base -> Any
Inherited from:
Base
final def withDefault[R >: T](value: R)(implicit ticket: CreationTicket): Signal[R]

Attributes

Inherited from:
Signal

Inherited fields

override val info: ReInfo

Attributes

Inherited from:
Base