kyo.Var
See theVar companion trait
object Var
Attributes
Members list
Value members
Concrete methods
Obtains the current value of the 'Var'.
Obtains the current value of the 'Var'.
Attributes
Handles the effect and discards the 'Var' state.
Handles the effect and discards the 'Var' state.
Attributes
Handles the effect and returns a tuple with the final Var state and the computation's result.
Handles the effect and returns a tuple with the final Var state and the computation's result.
Attributes
Sets a new value and returns the previous one.
Sets a new value and returns the previous one.
Attributes
inline def setDiscard[V](inline value: V)(using inline tag: Tag[Var[V]], inline frame: Frame): Unit < Var[V]
Sets a new value and returns Unit.
Sets a new value and returns Unit.
Attributes
Applies the update function and returns the new value.
Applies the update function and returns the new value.
Attributes
inline def updateDiscard[V](inline f: V => V)(using inline tag: Tag[Var[V]], inline frame: Frame): Unit < Var[V]
Applies the update function and returns Unit.
Applies the update function and returns Unit.
Attributes
In this article