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