Packages

object Var

Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Var
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Type Members

  1. type VarModTuple[A] = (Var[A], (A) => A)
  2. type VarTryModTuple[A] = (Var[A], (Try[A]) => Try[A])
  3. type VarTryTuple[A] = (Var[A], Try[A])
  4. type VarTuple[A] = (Var[A], A)

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[A](initial: A): Var[A]
  5. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  6. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native() @HotSpotIntrinsicCandidate()
  7. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  8. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  9. def fromTry[A](initial: Try[A]): Var[A]
    Annotations
    @inline()
  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. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  14. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  15. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  16. def set(values: VarTuple[_]*): Unit

    Set multiple Var values in the same Transaction Example usage: Var.set(var1 -> value1, var2 -> value2)

    Set multiple Var values in the same Transaction Example usage: Var.set(var1 -> value1, var2 -> value2)

    Exceptions thrown

    Exception if input contains duplicate vars. Airstream allows a maximum of one event per observable per transaction.

  17. def setTry(values: VarTryTuple[_]*): Unit

    Set multiple Var values in the same Transaction Example usage: Var.setTry(var1 -> Success(value1), var2 -> Failure(error2))

    Set multiple Var values in the same Transaction Example usage: Var.setTry(var1 -> Success(value1), var2 -> Failure(error2))

    Exceptions thrown

    Exception if input contains duplicate vars. Airstream allows a maximum of one event per observable per transaction.

  18. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  19. def toString(): String
    Definition Classes
    AnyRef → Any
  20. def tryUpdate(mods: VarTryModTuple[_]*): Unit

    Modify multiple Vars in the same Transaction Example usage: Var.tryUpdate(var1 -> _.map(_ + 1), var2 -> _.map(_ * 2))

    Modify multiple Vars in the same Transaction Example usage: Var.tryUpdate(var1 -> _.map(_ + 1), var2 -> _.map(_ * 2))

    Note: provided mods MUST NOT THROW.

    Exceptions thrown

    Exception if input contains duplicate vars. Airstream allows a maximum of one event per observable per transaction.

  21. def update(mods: VarModTuple[_]*): Unit

    Modify multiple Vars in the same Transaction Example usage: Var.update(var1 -> value1 => value1 + 1, var2 -> value2 => value2 * 2)

    Modify multiple Vars in the same Transaction Example usage: Var.update(var1 -> value1 => value1 + 1, var2 -> value2 => value2 * 2)

    Mod functions should be PURE. - If a mod throws, the var will be set to a failed state. - If you try to update a failed Var, Var.update will throw and none of the Vars will update.

    Exceptions thrown

    Exception 1) if currentValue of any of the vars is a Failure. This is atomic: an exception in any of the vars will prevent any of the batched updates in this call from going through. 2) if input contains duplicate vars. Airstream allows a maximum of one event per observable per transaction.

  22. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  23. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  24. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])

Deprecated Value Members

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

Inherited from AnyRef

Inherited from Any

Ungrouped