fun getAndSet(newValue: Int): Int
Atomically sets to the given value and returns the old value.
newValue
Return the previous value