//arrow-fx-coroutines/arrow.fx.coroutines/Atomic/tryUpdate

tryUpdate

common abstract suspend fun tryUpdate(f: (A) -> A): Boolean

Attempts to modify the current value once, in contrast to update which calls f until it succeeds.

Do you like Arrow?

Arrow Org
<