Packages

t

rx

Rx

Companion object Rx

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]
Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Rx
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Abstract Value Members

  1. abstract 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.

  2. 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()
  3. abstract 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

  4. abstract def toTry: Try[T]
    Annotations
    @inline()

Concrete Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. 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.

  5. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  6. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native()
  7. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  8. def equals(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  9. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  10. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  11. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  12. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  13. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  14. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  15. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  16. 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()
  17. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  18. def toString(): String
    Definition Classes
    AnyRef → Any
  19. final def trigger(f: (T) ⇒ Unit)(implicit ownerCtx: Owner): Obs
    Annotations
    @inline()
  20. 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.

  21. final def triggerLater(f: (T) ⇒ Unit)(implicit ownerCtx: Owner): Obs
    Annotations
    @inline()
  22. 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.

  23. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  24. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  25. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native()

Inherited from AnyRef

Inherited from Any

Ungrouped