class Dynamic[+T] extends Rx[T]
A Rx that depends on other Rxs, updating automatically when their value changes. Optionally has an owner, which is another Rx this one was defined within. The Rx gets killed automatically when the owner recalculates, in order to avoid memory leaks from un-used Rxs hanging around.
- Self Type
- Dynamic[T]
- Alphabetic
- By Inheritance
- Dynamic
- Rx
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
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[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
finalize(): Unit
- Attributes
- protected[java.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
-
def
kill(): Unit
Kills this Rx; stop listening for updates, and release all references to other Rxs.
-
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()
-
def
now: T
Get the current value of this Rx at this very moment, without listening for updates
-
def
propagate(): Unit
Force trigger/notifications of any downstream Rxs, without changing the current value
-
def
recalc(): Unit
Force this Rx to recompute (whether or not any upstream Rxs changed) and propagate changes downstream.
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- Dynamic → AnyRef → Any
- def toTry: Try[T]
-
def
trigger(f: (T) ⇒ Unit)(implicit ownerCtx: Owner): Obs
- Definition Classes
- Rx
-
def
trigger(thunk: ⇒ Unit)(implicit ownerCtx: Owner): Obs
Run the given function immediately, and again whenever this Rxs value changes.
-
def
triggerLater(f: (T) ⇒ Unit)(implicit ownerCtx: Owner): Obs
- Definition Classes
- Rx
-
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
- @native() @throws( ... )