Help us shape the future of Go! Take the 2026 Go Developer Survey

atomic

package
v0.9.6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 27, 2026 License: GPL-2.0 Imports: 2 Imported by: 84

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Bool deprecated

type Bool = atomic.Bool

Deprecated: use sync/atomic instead

type Int32 deprecated

type Int32 = atomic.Int32

Deprecated: use sync/atomic instead

type Int64 deprecated

type Int64 = atomic.Int64

Deprecated: use sync/atomic instead

type Pointer deprecated added in v0.2.4

type Pointer[T any] struct {
	atomic.Pointer[T]
}

Deprecated: use sync/atomic instead

type TypedValue deprecated added in v0.2.4

type TypedValue[T any] atomic.Pointer[T]

Deprecated: moved to common.TypedValue

func (*TypedValue[T]) CompareAndSwap added in v0.2.4

func (t *TypedValue[T]) CompareAndSwap(old, new T) bool

func (*TypedValue[T]) Load added in v0.2.4

func (t *TypedValue[T]) Load() T

func (*TypedValue[T]) Store added in v0.2.4

func (t *TypedValue[T]) Store(value T)

func (*TypedValue[T]) Swap added in v0.2.4

func (t *TypedValue[T]) Swap(new T) T

type Uint32 deprecated

type Uint32 = atomic.Uint32

Deprecated: use sync/atomic instead

type Uint64 deprecated

type Uint64 = atomic.Uint64

Deprecated: use sync/atomic instead

type Uintptr deprecated

type Uintptr = atomic.Uintptr

Deprecated: use sync/atomic instead

type Value deprecated

type Value = atomic.Value

Deprecated: use sync/atomic instead

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL