atomicx

package
v0.3.8 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewPointer added in v0.3.8

func NewPointer[T any](x *T) *atomic.Pointer[T]

Types

type Value

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

func NewValue

func NewValue[T any](x T) *Value[T]

func (*Value[T]) Load

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

func (*Value[T]) Store

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

Jump to

Keyboard shortcuts

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