nee-core / dev.neeffect.nee.atomic / AtomicRef / getAndUpdate

getAndUpdate

fun getAndUpdate(f: (A) -> A): IO<A>