Class

rescala.operator.DefaultImplementations

SignalImpl

Related Doc: package DefaultImplementations

Permalink

class SignalImpl[T] extends (DefaultImplementations.this)#DerivedImpl[T] with (DefaultImplementations.this)#Signal[T]

Linear Supertypes
(DefaultImplementations.this)#Signal[T], (DefaultImplementations.this)#SignalCompat[T], (DefaultImplementations.this)#InterpMacro[T], MacroAccess[T, (DefaultImplementations.this)#Interp[T]], (DefaultImplementations.this)#Interp[T], (DefaultImplementations.this)#DerivedImpl[T], (DefaultImplementations.this)#DisconnectableImpl, (DefaultImplementations.this)#Disconnectable, (DefaultImplementations.this)#Derived, (DefaultImplementations.this)#Base[Pulse[T]], (DefaultImplementations.this)#ReSource, AnyRef, Any
Ordering
  1. Grouped
  2. Alphabetic
  3. By Inheritance
Inherited
  1. SignalImpl
  2. Signal
  3. SignalCompat
  4. InterpMacro
  5. MacroAccess
  6. Interp
  7. DerivedImpl
  8. DisconnectableImpl
  9. Disconnectable
  10. Derived
  11. Base
  12. ReSource
  13. AnyRef
  14. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new SignalImpl(initial: (DefaultImplementations.this)#State[Pulse[T]], expr: ((DefaultImplementations.this)#DynamicTicket, () ⇒ T) ⇒ T, name: ReName, isDynamicWithStaticDeps: Option[Set[(DefaultImplementations.this)#ReSource]])

    Permalink

    isDynamicWithStaticDeps

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

Type Members

  1. final type ReIn = (DefaultImplementations.this)#ReevTicket[Value]

    Permalink
    Definition Classes
    Derived
  2. final type Rout = (DefaultImplementations.this)#Result[Value]

    Permalink
    Definition Classes
    Derived
  3. type Value = Pulse[T]

    Permalink
    Definition Classes
    BaseReSource

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: (DefaultImplementations.this)#CreationTicket): (DefaultImplementations.this)#Signal[T]

    Permalink
    Definition Classes
    Signal
    Annotations
    @cutOutOfUserComputation()
  5. final def apply(): T

    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

  6. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  7. final def change(implicit ticket: (DefaultImplementations.this)#CreationTicket): (DefaultImplementations.this)#Event[Diff[T]]

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

    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()
  9. final def changedTo[V >: T](value: V)(implicit ticket: (DefaultImplementations.this)#CreationTicket): (DefaultImplementations.this)#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()
  10. def clone(): AnyRef

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

    Permalink
    Attributes
    protected[rescala]
    Definition Classes
    SignalReSource
  12. def computePulse(rein: (DefaultImplementations.this)#ReevTicket[Pulse[T]]): Pulse[T]

    Permalink
    Attributes
    protected[this]
    Definition Classes
    SignalImplDerivedImpl
  13. final def disconnect()(implicit engine: (DefaultImplementations.this)#Scheduler): Unit

    Permalink
    Definition Classes
    DisconnectableImplDisconnectable
  14. final def eq(arg0: AnyRef): Boolean

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

    Permalink
    Definition Classes
    AnyRef → Any
  16. final def flatten[R](implicit flatten: (DefaultImplementations.this)#Flatten[(DefaultImplementations.this)#Signal[T], R]): R

    Permalink

    Flattens the inner value.

    Flattens the inner value.

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

    Permalink
    Definition Classes
    AnyRef → Any
    Annotations
    @IntrinsicCandidate()
  18. def guardReevaluate(rein: ReIn)(normalEval: ⇒ Rout): Rout

    Permalink
    Definition Classes
    DisconnectableImpl
  19. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
    Annotations
    @IntrinsicCandidate()
  20. def interpret(v: Value): T

    Permalink

    Interprets the internal type to the external type

    Interprets the internal type to the external type

    Definition Classes
    SignalInterp
  21. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  22. final macro def map[B](expression: (T) ⇒ B)(implicit ticket: (DefaultImplementations.this)#CreationTicket): (DefaultImplementations.this)#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()
  23. val name: ReName

    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
  24. final def ne(arg0: AnyRef): Boolean

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

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @IntrinsicCandidate()
  27. final def now: T

    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: (T) ⇒ Unit, onError: (Throwable) ⇒ Unit = null, fireImmediately: Boolean = true)(implicit ticket: (DefaultImplementations.this)#CreationTicket): (DefaultImplementations.this)#Observe

    Permalink

    add an observer

    add an observer

    Definition Classes
    Signal
  29. final def readValueOnce: T

    Permalink

    Returns the current value of the signal

    Returns the current value of the signal

    Definition Classes
    Signal
  30. final def recover[R >: T](onFailure: PartialFunction[Throwable, R])(implicit ticket: (DefaultImplementations.this)#CreationTicket): (DefaultImplementations.this)#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()
  31. def reevaluate(rein: ReIn): Rout

    Permalink

    called if any of the dependencies (rescala.core.Core.ReSources) changed in the current update turn, after all (known) dependencies are updated

    called if any of the dependencies (rescala.core.Core.ReSources) changed in the current update turn, after all (known) dependencies are updated

    Attributes
    protected[rescala]
    Definition Classes
    DerivedImplDerived
  32. def resource: (DefaultImplementations.this)#Interp[T]

    Permalink
    Definition Classes
    SignalMacroAccess
  33. val state: (DefaultImplementations.this)#State[Pulse[T]]

    Permalink

    the initial state passed by the scheduler

    the initial state passed by the scheduler

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

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

    Permalink
    Definition Classes
    Base → AnyRef → Any
  36. final def value: T

    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

  37. final def wait(arg0: Long, arg1: Int): Unit

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  39. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  40. final def withDefault[R >: T](value: R)(implicit ticket: (DefaultImplementations.this)#CreationTicket): (DefaultImplementations.this)#Signal[R]

    Permalink
    Definition Classes
    Signal
    Annotations
    @cutOutOfUserComputation()

Deprecated Value Members

  1. def finalize(): Unit

    Permalink
    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 (DefaultImplementations.this)#Signal[T]

Inherited from (DefaultImplementations.this)#SignalCompat[T]

Inherited from (DefaultImplementations.this)#InterpMacro[T]

Inherited from MacroAccess[T, (DefaultImplementations.this)#Interp[T]]

Inherited from (DefaultImplementations.this)#Interp[T]

Inherited from (DefaultImplementations.this)#DerivedImpl[T]

Inherited from (DefaultImplementations.this)#DisconnectableImpl

Inherited from (DefaultImplementations.this)#Disconnectable

Inherited from (DefaultImplementations.this)#Derived

Inherited from (DefaultImplementations.this)#Base[Pulse[T]]

Inherited from (DefaultImplementations.this)#ReSource

Inherited from AnyRef

Inherited from Any

internal

Accessor and observers

Signal operators

Signal to Event conversions

Ungrouped