sync/atomic: Actually call the load function
This commit is contained in:
parent
c49e33b0c3
commit
417eb2f962
@ -17,7 +17,7 @@ func (atom *Atom[T]) CompareAndSwap(old, neww T) (swapped bool) {
|
||||
}
|
||||
|
||||
func (atom *Atom[T]) Load() T {
|
||||
return castSafe[T](atom.value.Load)
|
||||
return castSafe[T](atom.value.Load())
|
||||
}
|
||||
|
||||
func (atom *Atom[T]) Store(val T) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user