UpdateMutableStateStreamExtensions<T> extension
Provides update
extension methods on MutableStateStream.
- on
Methods
-
getAndUpdate(
T transform(T value)) → T - Updates the value using the specified function of its value, and returns its prior value.
-
update(
T transform(T value)) → void - Updates the value using the specified function of its value.
-
updateAndGet(
T transform(T value)) → T - Updates the value using the specified function of its value, and returns the new value.