Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AtomicPointer ¶
type AtomicPointer[E any] struct { Init func() *E // contains filtered or unexported fields }
func NewAtomicPointer ¶
func NewAtomicPointer[E any](init func() *E) *AtomicPointer[E]
func (*AtomicPointer[E]) Get ¶
func (p *AtomicPointer[E]) Get() *E
func (*AtomicPointer[E]) Set ¶
func (p *AtomicPointer[E]) Set(e *E)
Click to show internal directories.
Click to hide internal directories.