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

getAndSet

fun getAndSet(a: A): IO<A>