Fix Swap and CompareAndSwap for Value wrappers without initialization.
Added
Add String method to atomic.Pointer[T] type allowing users to safely print
underlying values of pointers.
v1.10.0
Added
Add atomic.Float32 type for atomic operations on float32.
Add CompareAndSwap and Swap methods to atomic.String, atomic.Error,
and atomic.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's sync/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
Added
Add Float64.Swap to match int atomic operations.
Add atomic.Time type for atomic operations on time.Time values.
v1.8.0
Added
Add atomic.Uintptr type for atomic operations on uintptr values.
Add atomic.UnsafePointer type for atomic operations on unsafe.Pointer values.
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.
Add atomic.Float32 type for atomic operations on float32.
Add CompareAndSwap and Swap methods to atomic.String, atomic.Error,
and atomic.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's sync/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.
Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.
Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
- `@dependabot show ignore conditions` will show all of the ignore conditions of the specified dependency
- `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
Bumps go.uber.org/atomic from 1.6.0 to 1.11.0.
Release notes
Sourced from go.uber.org/atomic's releases.
Changelog
Sourced from go.uber.org/atomic's changelog.
... (truncated)
Commits
76f817c
Update CHANGELOG.md2a750c4
Preparing release v1.11.0544d6aa
Minimize permissions to CI workflows (#133)1505d28
Fix Swap and CompareAndSwap for Value wrappers (#130)78a3b8e
Implement String method for pointers (#122)159e329
chore(gen-*): Move templates into external files (#121)9680036
Prepare release v1.10.0 (#118)2ab21d8
Add Pointer[T] (#116)d144bb6
Drop use of deprecated ioutil package (#117)d4bbbc8
Add CompareAndSwap and Swap, Deprecate CAS (#111)Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting
@dependabot rebase
.Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@dependabot show