Obtains a snapshot of the current value, and a setter for updating it.
Obtains the current value.
Replaces the current value with
a, returning the previous value.
tryModify but does not complete until the update has been successfully made.
Like tryModifyState but retries the modification until successful.
Sets the current value to
tryUpdate but allows the update function to return an output value of
Update the value of this ref with a state computation.
Attempts to modify the current value once, returning
false if another
concurrent modification completes between the time the variable is
read and the time it is set.
Modifies the current value using the supplied update function.
Modify the context
F using transformation