atomic

package
v0.11.2 Latest Latest
Warning

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

Go to latest
Published: Apr 25, 2025 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Bool added in v0.10.0

type Bool = atomic.Bool

type Value

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

func (*Value[T]) Load

func (a *Value[T]) Load() T

func (*Value[T]) MarshalJSON

func (a *Value[T]) MarshalJSON() ([]byte, error)

func (*Value[T]) Store

func (a *Value[T]) Store(v T)

func (*Value[T]) Swap

func (a *Value[T]) Swap(v T) T

Jump to

Keyboard shortcuts

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