SignalImpl

class SignalImpl[T](initial: State[Pulse[T]], expr: (DynamicTicket, () => T) => T, name: ReName, isDynamicWithStaticDeps: Option[Set[ReSource]]) extends DerivedImpl[T] with Signal[T]
Value Params
isDynamicWithStaticDeps

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

trait Signal[T]
trait SignalCompat[T]
trait Interp[T]
class DerivedImpl[T]
trait Derived
class Base[Pulse[T]]
trait ReSource
class Object
trait Matchable
class Any

Document{}

final
def change(implicit ticket: CreationTicket): Event[Diff[T]]

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

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

Inherited from
Signal
final
def changed(implicit ticket: CreationTicket): Event[T]

Create an event that fires every time the signal changes. The value associated to the event is the new value of the signal

Create an event that fires every time the signal changes. The value associated to the event is the new value of the signal

Inherited from
Signal
final
def changedTo[V >: T](value: V)(implicit ticket: CreationTicket): Event[Unit]

Convenience function filtering to events which change this reactive to value

Convenience function filtering to events which change this reactive to value

Inherited from
Signal
final
def flatten[R](implicit flatten: Flatten[Signal[T], R]): R

Flattens the inner value.

Flattens the inner value.

Inherited from
Signal
final
def map[B](expression: T => B)(implicit ticket: CreationTicket): Signal[B]

Return a Signal with f applied to the value

Return a Signal with f applied to the value

Inherited from
SignalCompat
final
def now: T

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.

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.

Inherited from
Signal
final
def observe(onValue: T => Unit, onError: Throwable => Unit, fireImmediately: Boolean)(implicit ticket: CreationTicket): Observe

add an observer

add an observer

Inherited from
Signal
final

Returns the current value of the signal

Returns the current value of the signal

Inherited from
Signal

Type members

Inherited types

final
Inherited from
Derived
final
type Rout = Result[Value]
Inherited from
Derived
override
type Value = V
Inherited from
Base

Value members

Inherited methods

final
def abortOnError(message: String)(implicit ticket: CreationTicket): Signal[T]
Inherited from
Signal
final
def disconnect()(implicit engine: Scheduler): Unit
Inherited from
DisconnectableImpl
def guardReevaluate(rein: ReIn)(normalEval: => Rout): Rout
Inherited from
DisconnectableImpl
override
def interpret(v: Value): T
Definition Classes
Inherited from
Signal
final
def recover[R >: T](onFailure: PartialFunction[Throwable, R])(implicit ticket: CreationTicket): Signal[R]

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.

Inherited from
Signal
Inherited from
Signal
override
def toString: String
Definition Classes
Base -> Any
Inherited from
Base
final
def withDefault[R >: T](value: R)(implicit ticket: CreationTicket): Signal[R]
Inherited from
Signal