Class/Object

rx

Var

Related Docs: object Var | package rx

Permalink

class Var[T] extends Rx[T]

A smart variable that can be set manually, and will notify downstream Rxs and run any triggers whenever its value changes.

Linear Supertypes
Rx[T], AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. Var
  2. Rx
  3. AnyRef
  4. Any
  1. Hide All
  2. Show all
Visibility
  1. Public
  2. All

Instance Constructors

  1. new Var(initialValue: T)

    Permalink

Type Members

  1. trait Internal extends AnyRef

    Permalink
    Definition Classes
    Rx

Value Members

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

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

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

    Permalink
    Definition Classes
    AnyRef → Any
  4. object Internal extends Internal

    Permalink
    Definition Classes
    VarRx
  5. def apply()(implicit ctx: Data): T

    Permalink

    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
  6. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  7. def clone(): AnyRef

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

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

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

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

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

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

    Permalink
    Definition Classes
    Any
  14. def kill(): Unit

    Permalink

    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
    VarRx
  15. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  16. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  17. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  18. def now: T

    Permalink

    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
    VarRx
  19. def propagate(): Unit

    Permalink

    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
  20. def recalc(): Unit

    Permalink

    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
    VarRx
  21. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  22. def toString(): String

    Permalink
    Definition Classes
    Var → AnyRef → Any
  23. def toTry: Success[T]

    Permalink
    Definition Classes
    VarRx
  24. def trigger(thunk: ⇒ Unit)(implicit ownerCtx: Owner): Obs

    Permalink

    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
  25. def triggerLater(thunk: ⇒ Unit)(implicit ownerCtx: Owner): Obs

    Permalink

    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
  26. def update(newValue: T): Unit

    Permalink

    Sets the value of this Var and runs any triggers/notifies any downstream Rxs to update

  27. final def wait(): Unit

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

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from Rx[T]

Inherited from AnyRef

Inherited from Any

Ungrouped