rx.Rx

Dynamic

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]
Linear Supertypes
Rx[T], AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. Dynamic
  2. Rx
  3. AnyRef
  4. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Instance Constructors

  1. new Dynamic(func: (Owner, Data) ⇒ T, owner: Option[Owner])

Type Members

  1. trait Internal extends AnyRef

    Definition Classes
    Rx

Value Members

  1. final def !=(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  2. final def !=(arg0: Any): Boolean

    Definition Classes
    Any
  3. final def ##(): Int

    Definition Classes
    AnyRef → Any
  4. final def ==(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  5. final def ==(arg0: Any): Boolean

    Definition Classes
    Any
  6. object Internal extends Internal

    Definition Classes
    DynamicRx
  7. def apply()(implicit ctx: Data): T

    Get the current value of this Rx and listen for updates.

    Get the current value of this Rx and listen for updates. Only callable with an Rx{...} block (or equivalently when an implicit Ctx.Data is available), and the contextual/implicit Rx is the one that will update when the value of this Rx changes.

    Definition Classes
    Rx
  8. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  9. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  10. final def eq(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  11. def equals(arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  12. def finalize(): Unit

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  13. final def getClass(): Class[_]

    Definition Classes
    AnyRef → Any
  14. def hashCode(): Int

    Definition Classes
    AnyRef → Any
  15. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  16. def kill(): Unit

    Kills this Rx; stop listening for updates, and release all references to other Rxs.

    Kills this Rx; stop listening for updates, and release all references to other Rxs. This lets the Rx be garbage-collected, since otherwise even when not-in-use it will continue to be referenced by the other Rxs it depends on.

    Definition Classes
    DynamicRx
  17. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  18. final def notify(): Unit

    Definition Classes
    AnyRef
  19. final def notifyAll(): Unit

    Definition Classes
    AnyRef
  20. 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

    Definition Classes
    DynamicRx
  21. def ownerKilled(): Unit

  22. 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

    Definition Classes
    Rx
  23. def recalc(): Unit

    Force this Rx to recompute (whether or not any upstream Rxs changed) and propagate changes downstream.

    Force this Rx to recompute (whether or not any upstream Rxs changed) and propagate changes downstream. Does nothing if the Rx has been killed

    Definition Classes
    DynamicRx
  24. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  25. def toString(): String

    Definition Classes
    Dynamic → AnyRef → Any
  26. def toTry: Try[T]

    returns

    the current value of this Rx as a Try

    Definition Classes
    DynamicRx
  27. def trigger(thunk: ⇒ Unit)(implicit ownerCtx: Owner): Obs

    Run the given function immediately, and again whenever this Rxs value changes.

    Run the given function immediately, and again whenever this Rxs value changes. Returns an Obs if you want to keep track of this trigger or kill it later.

    Definition Classes
    Rx
  28. def triggerLater(thunk: ⇒ Unit)(implicit ownerCtx: Owner): Obs

    Run the given function whenever this Rxs value changes, but not immediately.

    Run the given function whenever this Rxs value changes, but not immediately. Returns an Obs if you want to keep track of this trigger or kill it later.

    Definition Classes
    Rx
  29. final def wait(): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  30. final def wait(arg0: Long, arg1: Int): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  31. final def wait(arg0: Long): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from Rx[T]

Inherited from AnyRef

Inherited from Any

Ungrouped