Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SafeList ¶
SafeList is a thread-safe list
func NewSafeList ¶
func (*SafeList[T]) PopBackAll ¶
func (sl *SafeList[T]) PopBackAll() []T
func (*SafeList[T]) PushFrontN ¶
func (sl *SafeList[T]) PushFrontN(vs []T)
type SafeListLimited ¶
SafeListLimited is SafeList with Limited Size
func NewSafeListLimited ¶
func NewSafeListLimited[T any](maxSize int) *SafeListLimited[T]
func (*SafeListLimited[T]) Len ¶
func (sll *SafeListLimited[T]) Len() int
func (*SafeListLimited[T]) PopBackAll ¶
func (sll *SafeListLimited[T]) PopBackAll() []T
func (*SafeListLimited[T]) PopBackN ¶
func (sll *SafeListLimited[T]) PopBackN(n int) []T
func (*SafeListLimited[T]) PushFront ¶
func (sll *SafeListLimited[T]) PushFront(v T) bool
func (*SafeListLimited[T]) PushFrontN ¶
func (sll *SafeListLimited[T]) PushFrontN(vs []T) bool
func (*SafeListLimited[T]) RemoveAll ¶
func (sll *SafeListLimited[T]) RemoveAll()
Click to show internal directories.
Click to hide internal directories.