Packages

t

rescala.interface

RescalaInterface

trait RescalaInterface extends Operators

Rescala has two main abstractions. Event and Signal commonly referred to as reactives. Use Var to create signal sources and Evt to create event sources.

Events and signals can be created from other reactives by using combinators, signals additionally can be created using Signal expressions.

Ordering
  1. Grouped
  2. Alphabetic
  3. By Inheritance
Inherited
  1. RescalaInterface
  2. Operators
  3. ObserveBundle
  4. Sources
  5. FlattenApi
  6. FlattenCollectionCompat
  7. SignalBundle
  8. SignalCompatBundle
  9. EventBundle
  10. EventCompatBundle
  11. ReadableMacroBundle
  12. DefaultImplementations
  13. AnyRef
  14. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Type Members

  1. trait EventCompat[+T] extends operator.Operators.ReadableMacro[State, Option[T]]
    Definition Classes
    EventCompatBundle
  2. trait SignalCompat[+T] extends operator.Operators.ReadableMacro[State, T]
    Definition Classes
    SignalCompatBundle
  3. class UserDefinedFunction[+T, Dep, Cap] extends AnyRef
    Definition Classes
    SignalCompatBundle
  4. type CreationTicket = core.CreationTicket[State]
    Definition Classes
    Operators
  5. type DynamicTicket = core.DynamicTicket[State]
    Definition Classes
    Operators
  6. type ReSource = core.ReSource { type State[V] = RescalaInterface.this.State[V] }
    Definition Classes
    Operators
  7. type ScopeSearch = core.ScopeSearch[State]
    Definition Classes
    Operators
  8. abstract type State[_]
    Definition Classes
    Operators
  9. type StaticTicket = core.StaticTicket[State]
    Definition Classes
    Operators
  10. trait ReadableMacro[S[_], +A] extends ReadAs[S, A] with MacroAccess[A, ReadAs[S, A]]
    Definition Classes
    ReadableMacroBundle
  11. class ChangeEventImpl[T] extends Base[State, (Pulse[T], Pulse[Diff[T]])] with Derived with Operators.Event[Diff[T]] with DisconnectableImpl
    Definition Classes
    DefaultImplementations
  12. abstract class DerivedImpl[T] extends Base[State, Pulse[T]] with Derived with DisconnectableImpl
    Definition Classes
    DefaultImplementations
  13. class EventImpl[T] extends Operators.DerivedImpl[T] with Operators.Event[T]

    Definition Classes
    DefaultImplementations
  14. class SignalImpl[T] extends Operators.DerivedImpl[T] with Operators.Signal[T]

    Definition Classes
    DefaultImplementations
  15. trait Event[+T] extends Operators.EventCompat[T] with Disconnectable

    Events only propagate a value when they are changing, when the system is at rest, events have no values.

    Events only propagate a value when they are changing, when the system is at rest, events have no values.

    Note: We hide implicit parameters of the API in the documentation. They are used to ensure correct creation, and you normally do not have to worry about them, except if you accidentally call the implicit parameter list, in which cas you may get cryptic errors. This is a scala limitation. We also hide the internal state parameter of passed and returned events.

    T

    Value type of the event occurrences.

    Definition Classes
    EventBundle
  16. trait Flatten[-A, R] extends AnyRef
    Definition Classes
    FlattenApi
    Annotations
    @implicitNotFound()
  17. trait ObserveInteract extends Observation
    Definition Classes
    ObserveBundle
  18. trait Signal[+T] extends Disconnectable with Operators.SignalCompat[T]

    Time changing value derived from the dependencies.

    Time changing value derived from the dependencies.

    T

    Type stored by the signal

    Definition Classes
    SignalBundle
  19. class Evt[T] extends Base[State, Pulse[T]] with Operators.Source[T] with Operators.Event[T]

    Source events with imperative occurrences

    Source events with imperative occurrences

    T

    Type returned when the event fires

    Definition Classes
    Sources
  20. trait Source[T] extends ReSource
    Definition Classes
    Sources
  21. class Var[A] extends Base[State, Pulse[A]] with Operators.Source[A] with Operators.Signal[A]

    Source signals with imperatively updates.

    Source signals with imperatively updates.

    A

    Type stored by the signal

    Definition Classes
    Sources

Abstract Value Members

  1. abstract def scheduler: Scheduler[State]

Concrete Value Members

  1. object Event

    Similar to rescala.compat.SignalCompatBundle.Signal expressions, but resulting in an event.

    Similar to rescala.compat.SignalCompatBundle.Signal expressions, but resulting in an event. Accessed events return options depending on whether they fire or not, and the complete result of the expression is an event as well.

    Definition Classes
    EventCompatBundle
    See also

    rescala.compat.SignalCompatBundle.Signal

  2. object Signal

    A signal expression can be used to create signals accessing arbitrary other signals.

    A signal expression can be used to create signals accessing arbitrary other signals. Use the apply method on a signal to access its value inside of a signal expression.

    val a: Signal[Int]
    val b: Signal[Int]
    val result: Signal[String] = Signal { a().toString + b().toString}
    Definition Classes
    SignalCompatBundle
  3. object UserDefinedFunction
    Definition Classes
    SignalCompatBundle
  4. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  5. final def ##: Int
    Definition Classes
    AnyRef → Any
  6. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  7. final def Evt[A]()(implicit ticket: CreationTicket): Evt[A]

    Definition Classes
    Sources
  8. implicit def OnEv[T](e: Event[T]): OnEv[T]
  9. implicit def OnEvs[T](e: => Seq[Event[T]]): OnEvs[T]
  10. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  11. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native() @IntrinsicCandidate()
  12. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  13. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  14. def firstFiringEvent[B, T[U] <: IterableOps[U, T, T[U]], Evnt[A1] <: Event[A1]](implicit ticket: CreationTicket): Flatten[Signal[T[Evnt[B]]], Event[B]]

    Flatten a Signal[Traversable[Event[B]\]\] into a Event[B].

    Flatten a Signal[Traversable[Event[B]\]\] into a Event[B]. The new Event fires the value of any inner firing Event. If multiple inner Events fire, the first one in iteration order is selected.

    Definition Classes
    FlattenCollectionCompat
  15. implicit def flattenImplicitForarraySignals[B, Sig[U] <: Signal[U]](implicit arg0: ClassTag[B], ticket: CreationTicket): Flatten[Signal[Array[Sig[B]]], Signal[Array[B]]]

    Flatten a Signal[Array[Signal[B]\]\] into a Signal[Array[B]\] where the new Signal updates whenever any of the inner or the outer signal updates

    Flatten a Signal[Array[Signal[B]\]\] into a Signal[Array[B]\] where the new Signal updates whenever any of the inner or the outer signal updates

    Definition Classes
    FlattenApi
  16. implicit def flattenImplicitForevent[A, B, Evnt[A1] <: Event[A1]](implicit ticket: CreationTicket): Flatten[Signal[Evnt[B]], Event[B]]

    Flatten a Signal[Event[B]]\] into a Event[B] where the new Event fires whenever the current inner event fires

    Flatten a Signal[Event[B]]\] into a Event[B] where the new Event fires whenever the current inner event fires

    Definition Classes
    FlattenApi
  17. implicit def flattenImplicitForoption[A, B](implicit ticket: CreationTicket): Flatten[Event[Option[B]], Event[B]]

    Flatten a Event[Option[B]\] into a Event[B] that fires whenever the inner option is defined.

    Flatten a Event[Option[B]\] into a Event[B] that fires whenever the inner option is defined.

    Definition Classes
    FlattenApi
  18. implicit def flattenImplicitForoptionSignal[B, Sig[U] <: Signal[U]](implicit ticket: CreationTicket): Flatten[Signal[Option[Sig[B]]], Signal[Option[B]]]

    Flatten a Signal[Option[Signal[B]\]\] into a Signal[Option[B]\] where the new Signal updates whenever any of the inner or the outer signal updates

    Flatten a Signal[Option[Signal[B]\]\] into a Signal[Option[B]\] where the new Signal updates whenever any of the inner or the outer signal updates

    Definition Classes
    FlattenApi
  19. implicit def flattenImplicitForsignal[B](implicit ticket: CreationTicket): Flatten[Signal[Signal[B]], Signal[B]]

    Flatten a Signal[Signal[B]\] into a Signal[B] that changes whenever the outer or inner signal changes.

    Flatten a Signal[Signal[B]\] into a Signal[B] that changes whenever the outer or inner signal changes.

    Definition Classes
    FlattenApi
  20. implicit def flattenImplicitFortraversableSignals[B, T[U] <: IterableOps[U, T, T[U]], Sig[A1] <: Signal[A1]](implicit ticket: CreationTicket): Flatten[Signal[T[Sig[B]]], Signal[T[B]]]

    Flatten a Signal[Traversable[Signal[B]\]\] into a Signal[Traversable[B]\] where the new Signal updates whenever any of the inner or the outer signal updates

    Flatten a Signal[Traversable[Signal[B]\]\] into a Signal[Traversable[B]\] where the new Signal updates whenever any of the inner or the outer signal updates

    Definition Classes
    FlattenCollectionCompat
  21. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @IntrinsicCandidate()
  22. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @IntrinsicCandidate()
  23. implicit def implicitScheduler: Scheduler[State]

  24. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  25. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  26. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @IntrinsicCandidate()
  27. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @IntrinsicCandidate()
  28. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  29. def toString(): String
    Definition Classes
    RescalaInterface → AnyRef → Any
  30. def transaction[R](initialWrites: of[State]*)(admissionPhase: (AdmissionTicket[State]) => R): R

    Executes a transaction.

    Executes a transaction.

    R

    Result type of the admission function

    initialWrites

    All inputs that might be changed by the transaction

    admissionPhase

    An admission function that may rescala.operator.Sources.Evt.admit / rescala.operator.Sources.Var.admit arbitrary input changes that will be applied as an atomic transaction at the end.

    returns

    Result of the admission function

    Example:
    1. transaction(a, b){ implicit at => a.set(5); b.set(1); at.now(a) }

  31. def transactionWithWrapup[I, R](iw: of[State]*)(ap: (AdmissionTicket[State]) => I)(wrapUp: (I, of[State]) => R): R

    Executes a transaction with WrapUpPhase.

    Executes a transaction with WrapUpPhase.

    See also

    transaction

  32. def traversableOfAllOccuringEventValues[B, T[U] <: IterableOps[U, T, T[U]], Evnt[A1] <: Event[A1]](implicit ticket: CreationTicket): Flatten[Signal[T[Evnt[B]]], Event[T[Option[B]]]]

    Flatten a Signal[Traversable[Event[B]\]\] into a Event[Traversable[Option[B]\]\] where the new Event fires whenever any of the inner events fire

    Flatten a Signal[Traversable[Event[B]\]\] into a Event[Traversable[Option[B]\]\] where the new Event fires whenever any of the inner events fire

    Definition Classes
    FlattenCollectionCompat
  33. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  34. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  35. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  36. object Events
    Definition Classes
    EventBundle
  37. object Observe

    observers are normale reactives that are configured by a function that converts the value of the input into an ObserveInteract

    observers are normale reactives that are configured by a function that converts the value of the input into an ObserveInteract

    Definition Classes
    ObserveBundle
  38. object Signals

    Functions to construct signals, you probably want to use signal expressions in rescala.interface.RescalaInterface.Signal for a nicer API.

    Functions to construct signals, you probably want to use signal expressions in rescala.interface.RescalaInterface.Signal for a nicer API.

    Definition Classes
    SignalBundle
  39. object Var

    Creates new Vars

    Creates new Vars

    Definition Classes
    Sources

Deprecated Value Members

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

Inherited from Operators

Inherited from ObserveBundle

Inherited from Sources

Inherited from FlattenApi

Inherited from SignalBundle

Inherited from SignalCompatBundle

Inherited from EventBundle

Inherited from EventCompatBundle

Inherited from ReadableMacroBundle

Inherited from DefaultImplementations

Inherited from AnyRef

Inherited from Any

Create new reactives

Update multiple reactives

Advanced functions used when extending REScala

Methods and type aliases for advanced usages, these are most relevant to abstract over multiple scheduler implementations.

Ungrouped