Packages

class Var[A] extends Operators.Base[Pulse[A]] with Operators.Source[A] with Operators.Signal[A] with Operators.ReadAs[A]

Source signals with imperatively updates.

A

Type stored by the signal

Ordering
  1. Grouped
  2. Alphabetic
  3. By Inheritance
Inherited
  1. Var
  2. Signal
  3. SignalCompat
  4. ReadableMacro
  5. MacroAccess
  6. ReadAs
  7. Disconnectable
  8. Source
  9. Base
  10. ReSource
  11. AnyRef
  12. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Type Members

  1. type Value = Pulse[A]
    Definition Classes
    VarSignalBaseReSource

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[A]
    Definition Classes
    Signal
    Annotations
    @cutOutOfUserComputation()
  5. final def admit(value: A)(implicit ticket: Operators.AdmissionTicket): Unit
    Definition Classes
    Source
  6. def admitPulse(pulse: Pulse[A])(implicit ticket: Operators.AdmissionTicket): Unit
    Definition Classes
    VarSource
  7. final def apply(): A

    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

  8. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  9. final def change(implicit ticket: Operators.CreationTicket): Operators.Event[Diff[A]]

    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

    Definition Classes
    Signal
    Annotations
    @cutOutOfUserComputation()
  10. final def changed(implicit ticket: Operators.CreationTicket): Operators.Event[A]

    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

    Definition Classes
    Signal
    Annotations
    @cutOutOfUserComputation()
  11. final def changedTo[V >: A](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

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

    Flattens the inner value.

    Flattens the inner value.

    Definition Classes
    Signal
    Annotations
    @cutOutOfUserComputation()
  18. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @IntrinsicCandidate()
  19. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @IntrinsicCandidate()
  20. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  21. final macro def map[B](expression: (A) => 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()
  22. val name: ReName
    Definition Classes
    BaseReSource
  23. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  24. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @IntrinsicCandidate()
  25. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @IntrinsicCandidate()
  26. final def now(implicit scheduler: Operators.Scheduler): A

    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.

    Definition Classes
    Signal
  27. final def observe(onValue: (A) => Unit, onError: (Throwable) => Unit = null, fireImmediately: Boolean = true)(implicit ticket: Operators.CreationTicket): Operators.Disconnectable

    add an observer

    add an observer

    Definition Classes
    Signal
  28. def read(v: Value): A

    Interprets the internal type to the external type

    Interprets the internal type to the external type

    Definition Classes
    SignalReadAs
  29. final def readValueOnce(implicit scheduler: Operators.Scheduler): A

    Returns the current value of the signal

    Returns the current value of the signal

    Definition Classes
    Signal
  30. final def recover[R >: A](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.

    Definition Classes
    Signal
    Annotations
    @cutOutOfUserComputation()
  31. val resource: Operators.Signal[A]
    Definition Classes
    VarSignalMacroAccess
  32. def set(value: A)(implicit sched: Operators.Scheduler, scopeSearch: Operators.ScopeSearch): Unit
  33. def setEmpty()(implicit fac: Operators.Scheduler): Unit
  34. val state: Operators.State[Pulse[A]]
    Attributes
    protected[rescala]
    Definition Classes
    BaseReSource
  35. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  36. def toString(): String
    Definition Classes
    Base → AnyRef → Any
  37. def transform(f: (A) => A)(implicit sched: Operators.Scheduler, scopeSearch: Operators.ScopeSearch): Unit
  38. final def value: A

    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

  39. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  40. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  41. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  42. final def withDefault[R >: A](value: R)(implicit ticket: Operators.CreationTicket): Operators.Signal[R]
    Definition Classes
    Signal
    Annotations
    @cutOutOfUserComputation()

Deprecated Value Members

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

Inherited from Operators.Signal[A]

Inherited from Operators.SignalCompat[A]

Inherited from Operators.ReadableMacro[A]

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

Inherited from Operators.ReadAs[A]

Inherited from Operators.Source[A]

Inherited from Operators.Base[Pulse[A]]

Inherited from Operators.ReSource

Inherited from AnyRef

Inherited from Any

internal

Accessor and observers

Signal operators

Signal to Event conversions

Ungrouped