sync/atomic.Uint32.CompareAndSwap (method)

one use

	sync/atomic (current package)
		type.go#L146: func (x *Uint32) CompareAndSwap(old, new uint32) (swapped bool) {