trait Signal[+T] extends Operators.Disconnectable with Operators.SignalCompat[T]

Time changing value derived from the dependencies.

T

Type stored by the signal

Known Subclasses
Ordering
  1. Grouped
  2. Alphabetic
  3. By Inheritance
Inherited
  1. Signal
  2. SignalCompat
  3. ReadableMacro
  4. MacroAccess
  5. ReadAs
  6. ReSource
  7. Disconnectable
  8. AnyRef
  9. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Type Members

  1. abstract type Value <: Pulse[T]
    Definition Classes
    SignalReSource

Abstract Value Members

  1. abstract def disconnect(): Unit
    Definition Classes
    Disconnectable
  2. abstract def name: ReName
    Attributes
    protected[rescala]
    Definition Classes
    ReSource
  3. abstract def state: Operators.State[Value]
    Attributes
    protected[rescala]
    Definition Classes
    ReSource

Concrete Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##: Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. final def abortOnError(message: String)(implicit ticket: Operators.CreationTicket): Operators.Signal[T]
  5. final def apply(): T

    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. Is an alias for value.

    Definition Classes
    MacroAccess
    Annotations
    @compileTimeOnly("".+(this).+(" apply can only be used inside of reactive expressions"))
    See also

    value

  6. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  7. final def change(implicit ticket: Operators.CreationTicket): Operators.Event[Diff[T]]

    Create an event that fires every time the signal changes.

    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

    Annotations
    @cutOutOfUserComputation()
  8. final def changed(implicit ticket: Operators.CreationTicket): Operators.Event[T]

    Create an event that fires every time the signal changes.

    Create an event that fires every time the signal changes. The value associated to the event is the new value of the signal

    Annotations
    @cutOutOfUserComputation()
  9. final def changedTo[V >: T](value: V)(implicit ticket: Operators.CreationTicket): Operators.Event[Unit]

    Convenience function filtering to events which change this reactive to value

    Convenience function filtering to events which change this reactive to value

    Annotations
    @cutOutOfUserComputation()
  10. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native() @IntrinsicCandidate()
  11. def commit(base: Value): Value
    Attributes
    protected[rescala]
    Definition Classes
    SignalReSource
  12. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  13. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  14. final def flatten[R](implicit flatten: Operators.Flatten[Operators.Signal[T], R]): R

    Flattens the inner value.

    Flattens the inner value.

    Annotations
    @cutOutOfUserComputation()
  15. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @IntrinsicCandidate()
  16. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @IntrinsicCandidate()
  17. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  18. final macro def map[B](expression: (T) => B)(implicit ticket: Operators.CreationTicket): Operators.Signal[B]

    Return a Signal with f applied to the value

    Return a Signal with f applied to the value

    Definition Classes
    SignalCompat
    Annotations
    @cutOutOfUserComputation()
  19. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  20. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @IntrinsicCandidate()
  21. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @IntrinsicCandidate()
  22. final def now(implicit scheduler: Operators.Scheduler): T

    Returns the current value of the signal However, using now is in most cases not what you want.

    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.

  23. final def observe(onValue: (T) => Unit, onError: (Throwable) => Unit = null, fireImmediately: Boolean = true)(implicit ticket: Operators.CreationTicket): Operators.Disconnectable

    add an observer

  24. def read(v: Value): T

    Interprets the internal type to the external type

    Interprets the internal type to the external type

    Definition Classes
    SignalReadAs
  25. final def readValueOnce(implicit scheduler: Operators.Scheduler): T

    Returns the current value of the signal

  26. final def recover[R >: T](onFailure: PartialFunction[Throwable, R])(implicit ticket: Operators.CreationTicket): Operators.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.

    Annotations
    @cutOutOfUserComputation()
  27. def resource: Operators.ReadAs[T]
    Definition Classes
    SignalMacroAccess
  28. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  29. def toString(): String
    Definition Classes
    AnyRef → Any
  30. final def value: T

    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. Is an alias for rescala.macros.MacroAccess.apply.

    Definition Classes
    MacroAccess
    Annotations
    @compileTimeOnly("value can only be used inside of reactive expressions")
    See also

    apply

  31. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  32. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  33. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  34. final def withDefault[R >: T](value: R)(implicit ticket: Operators.CreationTicket): Operators.Signal[R]

Deprecated Value Members

  1. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable]) @Deprecated
    Deprecated

Inherited from Operators.SignalCompat[T]

Inherited from Operators.ReadableMacro[T]

Inherited from MacroAccess[T, Operators.ReadAs[T]]

Inherited from Operators.ReadAs[T]

Inherited from Operators.ReSource

Inherited from AnyRef

Inherited from Any

internal

Accessor and observers

Signal operators

Signal to Event conversions

Ungrouped