//arrow-fx-coroutines/arrow.fx.coroutines/Atomic/setAndGet

setAndGet

common abstract suspend fun setAndGet(a: A): A

Replaces the current value with a, returning the new value.

Do you like Arrow?

Arrow Org
<