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

updateAndGet

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

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

See also

common

   
arrow.fx.coroutines.Atomic , f may be invoked multiple times.

Do you like Arrow?

Arrow Org
<