LVars serve as the basis for reactive lenses. To create the root of a new LVar cluster, use the apply() function of the LVar object. Then, connect additional LVars via Lenses using the applyLens() function of an existing LVar.
Value parameters
events
Incoming events indicating a change to the LVar cluster
Returns the current value of the signal However, using now is in most cases not what you want. It does not build dependencies, does not integrate into transactions. Use only for examples and debug output.
Returns the current value of the signal However, using now is in most cases not what you want. It does not build dependencies, does not integrate into transactions. Use only for examples and debug output.
TODO: The BijectiveSigLens requires a reactive read without evaluating dependencies. As this is currently not supported by REScala, it uses .now instead! Creates a new LVar which is connected to this LVar via the given Lens.
TODO: The BijectiveSigLens requires a reactive read without evaluating dependencies. As this is currently not supported by REScala, it uses .now instead! Creates a new LVar which is connected to this LVar via the given Lens.
Value parameters
lens
The lens which connects the LVars. Can use using conversion from Lens if the Lens does not need to change later