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))
![]()  | 
The pages are generated with Golds v0.6.7. (GOOS=linux GOARCH=amd64) Golds is a Go 101 project developed by Tapir Liu. PR and bug reports are welcome and can be submitted to the issue list. Please follow @Go100and1 (reachable from the left QR code) to get the latest news of Golds. |