trait Rx[+T] extends AnyRef
A reactive value of type T. Keeps track of triggers and other Rxs that depend on it, running any triggers and notifying downstream Rxs when its value changes.
- Self Type
- Rx[T]
- Alphabetic
- By Inheritance
- Rx
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Abstract Value Members
-
abstract
def
kill(): Unit
Kills this Rx; stop listening for updates, and release all references to other Rxs.
-
abstract
def
now: T
Get the current value of this Rx at this very moment, without listening for updates
Get the current value of this Rx at this very moment, without listening for updates
- Annotations
- @inline()
-
abstract
def
recalc(): Unit
Force this Rx to recompute (whether or not any upstream Rxs changed) and propagate changes downstream.
-
abstract
def
toTry: Try[T]
- Annotations
- @inline()
Concrete 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
-
def
apply()(implicit ctx: Data): T
Get the current value of this Rx and listen for updates.
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
propagate(): Unit
Force trigger/notifications of any downstream Rxs, without changing the current value
Force trigger/notifications of any downstream Rxs, without changing the current value
- Annotations
- @inline()
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
final
def
trigger(f: (T) ⇒ Unit)(implicit ownerCtx: Owner): Obs
- Annotations
- @inline()
-
def
trigger(thunk: ⇒ Unit)(implicit ownerCtx: Owner): Obs
Run the given function immediately, and again whenever this Rxs value changes.
-
final
def
triggerLater(f: (T) ⇒ Unit)(implicit ownerCtx: Owner): Obs
- Annotations
- @inline()
-
def
triggerLater(thunk: ⇒ Unit)(implicit ownerCtx: Owner): Obs
Run the given function whenever this Rxs value changes, but not immediately.
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
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()