class Var[A] extends (Sources.this)#Base[Pulse[A]] with (Sources.this)#Source[A] with (Sources.this)#Signal[A] with (Sources.this)#Interp[A]
Source signals with imperatively updates.
- A
Type stored by the signal
- Grouped
- Alphabetic
- By Inheritance
- Var
- Signal
- SignalCompat
- InterpMacro
- MacroAccess
- Interp
- Disconnectable
- Source
- Base
- ReSource
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
abortOnError(message: String)(implicit ticket: (Sources.this)#CreationTicket): (Sources.this)#Signal[A]
- Definition Classes
- Signal
- Annotations
- @cutOutOfUserComputation()
-
final
def
admit(value: A)(implicit ticket: (Sources.this)#AdmissionTicket): Unit
- Definition Classes
- Source
- def admitPulse(pulse: Pulse[A])(implicit ticket: (Sources.this)#AdmissionTicket): Unit
-
final
def
apply(): A
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
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
final
def
change(implicit ticket: (Sources.this)#CreationTicket): (Sources.this)#Event[Diff[A]]
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()
-
final
def
changed(implicit ticket: (Sources.this)#CreationTicket): (Sources.this)#Event[A]
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()
-
final
def
changedTo[V >: A](value: V)(implicit ticket: (Sources.this)#CreationTicket): (Sources.this)#Event[Unit]
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()
-
def
clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native() @IntrinsicCandidate()
- def commit(base: Value): Value
-
def
disconnect()(implicit engine: (Sources.this)#Scheduler): Unit
- Definition Classes
- Var → Disconnectable
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
flatten[R](implicit flatten: (Sources.this)#Flatten[(Sources.this)#Signal[A], R]): R
Flattens the inner value.
Flattens the inner value.
- Definition Classes
- Signal
- Annotations
- @cutOutOfUserComputation()
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @IntrinsicCandidate()
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @IntrinsicCandidate()
-
def
interpret(v: Value): A
Interprets the internal type to the external type
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
final macro
def
map[B](expression: (A) ⇒ B)(implicit ticket: (Sources.this)#CreationTicket): (Sources.this)#Signal[B]
Return a Signal with f applied to the value
Return a Signal with f applied to the value
- Definition Classes
- SignalCompat
- Annotations
- @cutOutOfUserComputation()
- val name: ReName
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @IntrinsicCandidate()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @IntrinsicCandidate()
-
final
def
now: A
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
-
final
def
observe(onValue: (A) ⇒ Unit, onError: (Throwable) ⇒ Unit = null, fireImmediately: Boolean = true)(implicit ticket: (Sources.this)#CreationTicket): (Sources.this)#Observe
add an observer
add an observer
- Definition Classes
- Signal
-
final
def
readValueOnce: A
Returns the current value of the signal
Returns the current value of the signal
- Definition Classes
- Signal
-
final
def
recover[R >: A](onFailure: PartialFunction[Throwable, R])(implicit ticket: (Sources.this)#CreationTicket): (Sources.this)#Signal[R]
Uses a partial function
onFailureto recover an error carried by the event into a value.Uses a partial function
onFailureto recover an error carried by the event into a value.- Definition Classes
- Signal
- Annotations
- @cutOutOfUserComputation()
-
val
resource: (Sources.this)#Signal[A]
- Definition Classes
- Var → Signal → MacroAccess
- def set(value: A)(implicit fac: (Sources.this)#Scheduler): Unit
- def setEmpty()(implicit fac: (Sources.this)#Scheduler): Unit
- val state: (Sources.this)#State[Pulse[A]]
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- Base → AnyRef → Any
- def transform(f: (A) ⇒ A)(implicit fac: (Sources.this)#Scheduler): Unit
-
final
def
value: A
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
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
withDefault[R >: A](value: R)(implicit ticket: (Sources.this)#CreationTicket): (Sources.this)#Signal[R]
- Definition Classes
- Signal
- Annotations
- @cutOutOfUserComputation()