setAndGet

abstract suspend fun setAndGet(a: A): A

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