atomic

package
v0.0.14 Latest Latest
Warning

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

Go to latest
Published: Mar 21, 2025 License: GPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Value

type Value[T any] struct {
	// contains filtered or unexported fields
}

func NewValue

func NewValue[T any](t T) Value[T]

func (Value[T]) Set

func (value Value[T]) Set(v T)

func (Value[T]) String

func (value Value[T]) String() string

func (Value[T]) Swap

func (value Value[T]) Swap(v T) (old T)

func (Value[T]) Value

func (value Value[T]) Value() T

type ValueNotInitializedError

type ValueNotInitializedError struct {
	// contains filtered or unexported fields
}

func NewValueNotInitializedError

func NewValueNotInitializedError() ValueNotInitializedError

Jump to

Keyboard shortcuts

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