v1.10.0
Added
- Add
atomic.Float32type for atomic operations onfloat32. - Add
CompareAndSwapandSwapmethods toatomic.String,atomic.Error,
andatomic.Value. - Add generic
atomic.Pointer[T]type for atomic operations on pointers of any
type. This is present only for Go 1.18 or higher, and is a drop-in for
replacement for the standard library'ssync/atomic.Pointertype.
Changed
- Deprecate
CASmethods on all types in favor of corresponding
CompareAndSwapmethods.
Thanks to @eNV25 and @icpd for their contributions to this release.