Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type LockFree ¶ added in v2.8.2
type LockFree[T any] struct { // contains filtered or unexported fields }
LockFree type that can be safely shared between goroutines.
func NewLockFree ¶ added in v2.8.2
NewLockFree creates a new lock-free thread-safe slice.
func (*LockFree[T]) Append ¶ added in v2.8.2
func (cs *LockFree[T]) Append(item T)
Append adds an item to the concurrent slice.
func (*LockFree[T]) Items ¶ added in v2.8.2
func (cs *LockFree[T]) Items() []T
Items returns the list of items
Click to show internal directories.
Click to hide internal directories.