compareAndSet

fun compareAndSet(value: T, newValue: T): Boolean