list

package
v1.3.13 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 19, 2025 License: MIT, Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type LockFreeList

type LockFreeList[T any] struct {
	// contains filtered or unexported fields
}

func NewLockFreeList

func NewLockFreeList[T any]() *LockFreeList[T]

func (*LockFreeList[T]) Len

func (l *LockFreeList[T]) Len() uint64

func (*LockFreeList[T]) Pop

func (l *LockFreeList[T]) Pop() (v T, ok bool)

func (*LockFreeList[T]) Push

func (l *LockFreeList[T]) Push(v T)

type MutexList

type MutexList[T any] struct {
	// contains filtered or unexported fields
}

func NewMutexList

func NewMutexList[T any]() *MutexList[T]

func (*MutexList[T]) Len

func (l *MutexList[T]) Len() uint64

func (*MutexList[T]) Pop

func (l *MutexList[T]) Pop() (v T, ok bool)

func (*MutexList[T]) Push

func (l *MutexList[T]) Push(v T)

type Node

type Node[T any] struct {
	Value T
	Next  *Node[T]
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL