sync/atomic.Value.CompareAndSwap (method)

5 uses

	sync/atomic (current package)
		value.go#L135: func (v *Value) CompareAndSwap(old, new any) (swapped bool) {

	go.uber.org/atomic
		error.go#L55: 	if x.v.CompareAndSwap(packError(old), packError(new)) {
		error.go#L62: 		return x.v.CompareAndSwap(nil, packError(new))
		string.go#L55: 	if x.v.CompareAndSwap(packString(old), packString(new)) {
		string.go#L62: 		return x.v.CompareAndSwap(nil, packString(new))