Packages

final class Var[A, S <: Struct] extends Source[S, A] with Signal[A, S]

Source signals with imperatively updates.

A

Type stored by the signal

S

Struct type used for the propagation of the signal

Linear Supertypes
Signal[A, S], Disconnectable[S], Interp[A, S], Source[S, A], ReSource[S], RENamed, AnyRef, Any
Ordering
  1. Grouped
  2. Alphabetic
  3. By Inheritance
Inherited
  1. Var
  2. Signal
  3. Disconnectable
  4. Interp
  5. Source
  6. ReSource
  7. RENamed
  8. AnyRef
  9. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Type Members

  1. final type State = S.State[Value, S]
    Definition Classes
    ReSource
  2. type Value = Pulse[A]
    Definition Classes
    VarSignalReSource

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()(implicit ticket: CreationTicket[S]): Signal[A, S]
    Definition Classes
    Signal
    Annotations
    @cutOutOfUserComputation()
  5. final def admit(value: A)(implicit ticket: AdmissionTicket[S]): Unit
    Definition Classes
    Source
  6. def admitPulse(pulse: Pulse[A])(implicit ticket: AdmissionTicket[S]): 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
    Interp
    Annotations
    @compileTimeOnly( ... )
    See also

    value

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

    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: CreationTicket[S]): Event[A, S]

    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: CreationTicket[S]): Event[Unit, S]

    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[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate() @throws( ... )
  13. def disconnect()(implicit engine: Scheduler[S]): Unit
    Definition Classes
    VarDisconnectable
  14. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  15. def equals(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  16. final def flatten[R](implicit flatten: Flatten[Signal[A, S], R]): R

    Flattens the inner value.

    Flattens the inner value.

    Definition Classes
    Signal
    Annotations
    @cutOutOfUserComputation()
  17. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  18. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  19. def interpret(v: Value): A

    Interprets the pulse of the signal by returning the value

    Interprets the pulse of the signal by returning the value

    Definition Classes
    SignalInterp
  20. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  21. final def map[B](f: (A) ⇒ B)(implicit ticket: CreationTicket[S]): Signal[B, S]

    Return a Signal with f applied to the value

    Return a Signal with f applied to the value

    Definition Classes
    Signal
    Annotations
    @cutOutOfUserComputation()
  22. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  23. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  24. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  25. final def now(implicit scheduler: Scheduler[S]): 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
  26. final def observe(onValue: (A) ⇒ Unit, onError: (Throwable) ⇒ Unit = null)(implicit ticket: CreationTicket[S]): Observe[S]

    add an observer

    add an observer

    Definition Classes
    Signal
  27. final def readValueOnce(implicit scheduler: Scheduler[S]): A

    Returns the current value of the signal

    Returns the current value of the signal

    Definition Classes
    Signal
  28. final def recover[R >: A](onFailure: PartialFunction[Throwable, R])(implicit ticket: CreationTicket[S]): Signal[R, S]

    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()
  29. def set(value: A)(implicit fac: Scheduler[S]): Unit
  30. def setEmpty()(implicit fac: Scheduler[S]): Unit
  31. def state: State
    Attributes
    protected[rescala]
    Definition Classes
    VarReSource
  32. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  33. def toString(): String
    Definition Classes
    RENamed → AnyRef → Any
  34. def transform(f: (A) ⇒ A)(implicit fac: Scheduler[S]): Unit
  35. 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 apply.

    Definition Classes
    Interp
    Annotations
    @compileTimeOnly( ... )
    See also

    apply

  36. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  37. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @throws( ... )
  38. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  39. final def withDefault[R >: A](value: R)(implicit ticket: CreationTicket[S]): Signal[R, S]
    Definition Classes
    Signal
    Annotations
    @cutOutOfUserComputation()

Deprecated Value Members

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

    (Since version ) see corresponding Javadoc for more information.

Inherited from Signal[A, S]

Inherited from Disconnectable[S]

Inherited from Interp[A, S]

Inherited from Source[S, A]

Inherited from ReSource[S]

Inherited from RENamed

Inherited from AnyRef

Inherited from Any

internal

Accessor and observers

Signal operators

Signal to Event conversions

Ungrouped