Versions in this module Expand all Collapse all v1 v1.3.19 Jun 6, 2023 v1.3.18 Jun 6, 2023 Changes in this version + type Bool atomic.Bool + func NewBool(i bool) *Bool + func (v *Bool) CAS(o, n bool) bool + func (v *Bool) Load() bool + func (v *Bool) MarshalJSON() ([]byte, error) + func (v *Bool) Store(n bool) + func (v *Bool) Swap(n bool) bool + func (v *Bool) Toggle() bool + func (v *Bool) UnmarshalJSON(data []byte) error + type Int32 atomic.Int32 + func NewInt32(i int32) *Int32 + func (v *Int32) Add(n int32) int32 + func (v *Int32) CAS(o, n int32) bool + func (v *Int32) Dec() int32 + func (v *Int32) Inc() int32 + func (v *Int32) Load() int32 + func (v *Int32) Store(n int32) + func (v *Int32) Swap(n int32) int32 + type Int64 atomic.Int64 + func NewInt64(i int64) *Int64 + func (v *Int64) Add(n int64) int64 + func (v *Int64) CAS(o, n int64) bool + func (v *Int64) Dec() int64 + func (v *Int64) Inc() int64 + func (v *Int64) Load() int64 + func (v *Int64) Store(n int64) + func (v *Int64) Sub(n int64) int64 + func (v *Int64) Swap(n int64) int64 + type Pointer struct + func (p *Pointer) Load() unsafe.Pointer + func (p *Pointer) Store(v unsafe.Pointer) + type Time atomic.Int64 + func NewTime(t time.Time) *Time + func (t *Time) Load() time.Time + func (t *Time) MarshalJSON() ([]byte, error) + func (t *Time) Store(n time.Time) + func (t *Time) UnmarshalJSON(data []byte) error + type Uint32 atomic.Uint32 + func NewUint32(i uint32) *Uint32 + func (v *Uint32) Add(n uint32) uint32 + func (v *Uint32) CAS(o, n uint32) bool + func (v *Uint32) Inc() uint32 + func (v *Uint32) Load() uint32 + func (v *Uint32) Store(n uint32) + func (v *Uint32) Swap(n uint32) uint32 + type Uint64 atomic.Uint64 + func NewUint64(i uint64) *Uint64 + func (v *Uint64) Add(n uint64) uint64 + func (v *Uint64) CAS(o, n uint64) bool + func (v *Uint64) Inc() uint64 + func (v *Uint64) Load() uint64 + func (v *Uint64) Store(n uint64) + func (v *Uint64) Sub(n uint64) uint64 + func (v *Uint64) Swap(n uint64) uint64