Attributes
Members list
Type members
Classlikes
Attributes
- Supertypes
-
class AnyValtrait Matchableclass Any
Attributes
- Supertypes
-
class AnyValtrait Matchableclass Any
Attributes
- Supertypes
-
class AnyValtrait Matchableclass Any
Value members
Concrete methods
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)
If input contains duplicate vars, reports an Airstream unhandled error. Airstream allows a maximum of one event per observable per transaction.
Attributes
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))
If input contains duplicate vars, reports an Airstream unhandled error. Airstream allows a maximum of one event per observable per transaction.
Attributes
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.
If input contains duplicate vars, reports an Airstream unhandled error. Airstream allows a maximum of one event per observable per transaction.
Attributes
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 post an error to unhandled errors, and none of the Vars will update.
Reports an Airstream unhandled error:
- 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.
- if input contains duplicate vars. Airstream allows a maximum of one event per observable per transaction.