Class/Object

rescala.operator.Sources

Var

Related Docs: object Var | package Sources

Permalink

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

Source signals with imperatively updates.

A

Type stored by the signal

Linear Supertypes
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. All

Type Members

  1. type State[V] = Operators.State[V]

    Permalink
    Definition Classes
    SignalReadAsReSource
  2. type Value = Pulse[A]

    Permalink
    Definition Classes
    VarSignalBaseReSource

Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. final def abortOnError(message: String)(implicit ticket: CreationTicket): Operators.Signal[A]

    Permalink
    Definition Classes
    Signal
    Annotations
    @cutOutOfUserComputation()
  5. final def admit(value: A)(implicit ticket: AdmissionTicket[State]): Unit

    Permalink
    Definition Classes
    Source
  6. def admitPulse(pulse: Pulse[A])(implicit ticket: AdmissionTicket[State]): Unit

    Permalink
    Definition Classes
    VarSource
  7. final def apply(): A

    Permalink

    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( ... )
    See also

    value

  8. final def asInstanceOf[T0]: T0

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

    Permalink

    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): Operators.Event[A]

    Permalink

    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): Operators.Event[Unit]

    Permalink

    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

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  13. def commit(base: Value): Value

    Permalink
    Attributes
    protected[rescala]
    Definition Classes
    SignalReSource
  14. def disconnect(): Unit

    Permalink
    Definition Classes
    VarDisconnectable
  15. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  16. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  17. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  18. final def flatten[R](implicit flatten: Operators.Flatten[Operators.Signal[A], R]): R

    Permalink

    Flattens the inner value.

    Flattens the inner value.

    Definition Classes
    Signal
    Annotations
    @cutOutOfUserComputation()
  19. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  20. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  21. val info: ReInfo

    Permalink

    the name of the reactive, useful for debugging as it often contains positional information

    the name of the reactive, useful for debugging as it often contains positional information

    Definition Classes
    BaseReSource
  22. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  23. final macro def map[B](expression: (A) ⇒ B)(implicit ticket: CreationTicket): Operators.Signal[B]

    Permalink

    Return a Signal with f applied to the value

    Return a Signal with f applied to the value

    Definition Classes
    SignalCompat
    Annotations
    @cutOutOfUserComputation()
  24. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  25. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  26. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  27. final def now(implicit scheduler: Scheduler[State]): A

    Permalink

    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
  28. final def observe(onValue: (A) ⇒ Unit, onError: (Throwable) ⇒ Unit = null, fireImmediately: Boolean = true)(implicit ticket: CreationTicket): Disconnectable

    Permalink

    add an observer

    add an observer

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

    Permalink

    Interprets the internal type to the external type

    Interprets the internal type to the external type

    Definition Classes
    SignalReadAs
  30. final def readValueOnce(implicit scheduler: Scheduler[State]): A

    Permalink

    Returns the current value of the signal

    Returns the current value of the signal

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

    Permalink

    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()
  32. val resource: Operators.Signal[A]

    Permalink
    Definition Classes
    VarSignalMacroAccess
  33. def set(value: A)(implicit sched: Scheduler[State], scopeSearch: ScopeSearch): Unit

    Permalink
  34. def setEmpty()(implicit fac: Scheduler[State]): Unit

    Permalink
  35. val state: Operators.State[Pulse[A]]

    Permalink

    the state passed by the scheduler

    the state passed by the scheduler

    Attributes
    protected[rescala]
    Definition Classes
    BaseReSource
  36. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  37. def toString(): String

    Permalink
    Definition Classes
    Base → AnyRef → Any
  38. def transform(f: (A) ⇒ A)(implicit sched: Scheduler[State], scopeSearch: ScopeSearch): Unit

    Permalink
  39. final def value: A

    Permalink

    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( ... )
    See also

    apply

  40. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  41. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  42. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  43. final def withDefault[R >: A](value: R)(implicit ticket: CreationTicket): Operators.Signal[R]

    Permalink
    Definition Classes
    Signal
    Annotations
    @cutOutOfUserComputation()

Inherited from Operators.Signal[A]

Inherited from Operators.SignalCompat[A]

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

Inherited from ReadAs[Operators.State, A]

Inherited from Disconnectable

Inherited from Operators.Source[A]

Inherited from Base[Operators.State, Pulse[A]]

Inherited from ReSource

Inherited from AnyRef

Inherited from Any

internal

Accessor and observers

Signal operators

Signal to Event conversions

Ungrouped