Signal

rescala.operator.SignalBundle.Signal
See theSignal companion trait
object Signal

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}

Attributes

Companion
trait
Graph
Supertypes
class Object
trait Matchable
class Any
Self type
Signal.type

Members list

Value members

Concrete methods

inline def apply[T](using CreationTicket[BundleState])(inline expr: T): Signal[T]
inline def dynamic[T](using CreationTicket[BundleState])(inline expr: T): Signal[T]
def dynamic[T](dependencies: of[BundleState]*)(expr: (DynamicTicket[BundleState]) => T)(implicit ct: CreationTicket[BundleState]): Signal[T]

creates a signal that has dynamic dependencies (which are detected at runtime with Signal.apply(turn))

creates a signal that has dynamic dependencies (which are detected at runtime with Signal.apply(turn))

Attributes

def fromFuture[A](fut: Future[A])(implicit scheduler: Scheduler[BundleState], ec: ExecutionContext, name: ReInfo): Signal[A]

converts a future to a signal

converts a future to a signal

Attributes

def lift[A, R](los: Seq[Signal[A]])(fun: (Seq[A]) => R)(implicit maybe: CreationTicket[BundleState]): Signal[R]
def lift[A1, B](n1: Signal[A1])(fun: A1 => B)(using CreationTicket[BundleState]): Signal[B]
def lift[A1, A2, B](n1: Signal[A1], n2: Signal[A2])(fun: (A1, A2) => B)(using CreationTicket[BundleState]): Signal[B]
inline def static[T](using CreationTicket[BundleState])(inline expr: T): Signal[T]
def static[T](dependencies: of[BundleState]*)(expr: (StaticTicket[BundleState]) => T)(implicit ct: CreationTicket[BundleState]): Signal[T]

creates a new static signal depending on the dependencies, reevaluating the function

creates a new static signal depending on the dependencies, reevaluating the function

Attributes