Packages

class SourceVar[A] extends Var[A]

The regular Var that's created with Var.apply.

See also DerivedVar, created with myVar.zoom(a => b)(b => a)(owner)

Linear Supertypes
Var[A], Named, Sink[A], SignalSource[A], Source[A], AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. SourceVar
  2. Var
  3. Named
  4. Sink
  5. SignalSource
  6. Source
  7. AnyRef
  8. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

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. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  5. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native() @HotSpotIntrinsicCandidate()
  6. def defaultDisplayName: String

    This is the method that subclasses override to preserve the user's ability to set custom display names.

    This is the method that subclasses override to preserve the user's ability to set custom display names.

    Attributes
    protected
    Definition Classes
    Named
  7. final def displayName: String
    Definition Classes
    Named
  8. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  9. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  10. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  11. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  12. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  13. val maybeDisplayName: UndefOr[String]

    This name should identify the instance (observable or observer) uniquely enough for your purposes.

    This name should identify the instance (observable or observer) uniquely enough for your purposes. You can read / write it to simplify debugging. Airstream uses this in debugLog* methods. In the future, we will expand on this. #TODO[Debug] We don't use this to its full potential yet.

    Attributes
    protected[this]
    Definition Classes
    Named
  14. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  15. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  16. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  17. def now(): A

    Definition Classes
    Var
    Annotations
    @inline()
    Exceptions thrown

    Exception if currentValue is a Failure

  18. final def set(value: A): Unit
    Definition Classes
    Var
  19. def setDisplayName(name: String): SourceVar.this.type

    Set the display name for this instance (observable or observer).

    Set the display name for this instance (observable or observer). - This method modifies the instance and returns this. It does not create a new instance. - New name you set will override the previous name, if any. This might change in the future. For the sake of sanity, don't call this more than once for the same instance. - If display name is set, toString will output it instead of the standard type@hashcode string

    Definition Classes
    Named
  20. final def setError(error: Throwable): Unit
    Definition Classes
    Var
  21. def setTry(tryValue: Try[A]): Unit
    Definition Classes
    Var
  22. val signal: StrictSignal[A]
    Definition Classes
    SourceVarVar
  23. def someWriter[V](implicit evidence: <:<[Option[V], A]): Observer[V]

    Write values into a Var of Option[V] without manually wrapping in Some()

    Write values into a Var of Option[V] without manually wrapping in Some()

    Definition Classes
    Var
  24. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  25. def toObservable: Signal[A]
    Definition Classes
    VarSignalSourceSource
  26. def toObserver: Observer[A]
    Definition Classes
    VarSink
  27. final def toString(): String

    Override defaultDisplayName instead of this, if you need to.

    Override defaultDisplayName instead of this, if you need to.

    Definition Classes
    Named → AnyRef → Any
  28. def tryNow(): Try[A]
    Definition Classes
    Var
    Annotations
    @inline()
  29. def tryUpdate(mod: (Try[A]) => Try[A]): Unit

    mod

    Note: must not throw

    Definition Classes
    Var
    Exceptions thrown

    Exception if mod throws

  30. def tryUpdater[B](mod: (Try[A], B) => Try[A]): Observer[B]

    mod

    (currValue, nextInput) => nextValue Note: Must not throw!

    Definition Classes
    Var
  31. def update(mod: (A) => A): Unit

    Do not use on failed Vars.

    Do not use on failed Vars. Use tryUpdate on those.

    mod

    Note: guarded against exceptions

    Definition Classes
    Var
  32. def updater[B](mod: (A, B) => A): Observer[B]

    An observer much like writer, but can compose input events with the current value of the var, for example:

    An observer much like writer, but can compose input events with the current value of the var, for example:

    val v = Var(List(1, 2, 3)) val appender = v.updater((acc, nextItem) => acc :+ nextItem) appender.onNext(4) // v now contains List(1, 2, 3, 4)

    Do not use on failed Vars. Use tryUpdater on those.

    mod

    (currValue, nextInput) => nextValue

    Definition Classes
    Var
  33. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  34. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  35. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  36. val writer: Observer[A]
    Definition Classes
    Var
  37. def zoom[B](in: (A) => B)(out: (B) => A)(implicit owner: Owner): Var[B]
    Definition Classes
    Var

Deprecated Value Members

  1. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable]) @Deprecated
    Deprecated

Inherited from Var[A]

Inherited from Named

Inherited from Sink[A]

Inherited from SignalSource[A]

Inherited from Source[A]

Inherited from AnyRef

Inherited from Any

Ungrouped