Releases: uber-go/atomic
Releases · uber-go/atomic
v1.11.0
v1.10.0
Added
- Add
atomic.Float32
type for atomic operations onfloat32
. - Add
CompareAndSwap
andSwap
methods 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.Pointer
type.
Changed
- Deprecate
CAS
methods on all types in favor of corresponding
CompareAndSwap
methods.
Thanks to @eNV25 and @icpd for their contributions to this release.
v1.9.0
v1.8.0
v1.7.0
Added
- Support JSON serialization and deserialization of primitive atomic types.
- Support Text marshalling and unmarshalling for string atomics.
Changed
- Disallow incorrect comparison of atomic values in a non-atomic way.
Removed
- Remove dependency on
golang.org/x/{lint, tools}
.
v1.6.0
v1.5.1
v1.5.0
v1.4.0
v1.3.2
- Add
atomic.Duration
type for atomic operations ontime.Duration
values.