object Var
- Alphabetic
- By Inheritance
- Var
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Type Members
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- def apply[A](initial: A): Var[A]
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native() @HotSpotIntrinsicCandidate()
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- def fromTry[A](initial: Try[A]): Var[A]
- Annotations
- @inline()
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- 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.
- 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.
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- 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.
- 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.
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
Deprecated Value Members
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable]) @Deprecated
- Deprecated