arrow-fx-coroutines / arrow.fx.coroutines / Atomic / getAndUpdate
abstract suspend fun getAndUpdate(f: (A) -> A): A
Modifies the current value using the supplied update function and returns the old value.
See Also
update
Do you like Arrow?