//arrow-fx-coroutines/arrow.fx.coroutines/Atomic/getAndSet

getAndSet

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

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

Do you like Arrow?

Arrow Org
<