arrow-fx-coroutines / arrow.fx.coroutines / Atomic / updateAndGet

updateAndGet

abstract suspend fun updateAndGet(f: (A) -> A): A

Modifies the current value using the supplied update function and returns the new value.

See Also

update

Do you like Arrow?

Arrow Org
<