package
Version:
v0.0.0-...-eeaec48
Opens a new window with list of versions in this module.
Published: Apr 12, 2024
License: MIT
Opens a new window with license information.
Imports: 1
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
type Value[T any] struct {
}
func (v *Value[T]) CompareAndSwap(old, new T) (swapped bool)
func (v *Value[T]) Load() (val T)
func (v *Value[T]) Store(val T)
func (v *Value[T]) Swap(new T) (old T)
Source Files
¶
Click to show internal directories.
Click to hide internal directories.