
The highest tagged major version is
v2.
package
Version:
v1.9.2
Opens a new window with list of versions in this module.
Published: Feb 28, 2024
License: MIT
Opens a new window with license information.
Imports: 2
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 {
}
Value is an atomic of absract value
func (c *Value[T]) Clear(cleaner func(T))
Clear it cleans value if it exists
Fetch call sink if value is present
func (c *Value[T]) Store(v T, cleaner func(T))
Store -
Source Files
¶
Click to show internal directories.
Click to hide internal directories.