Documentation
¶
Index ¶
- func Delay(z int)
- type EsQueue
- func (q *EsQueue[T]) Capaciity() uint32
- func (q *EsQueue[T]) Get() (val T, ok bool, quantity uint32)
- func (q *EsQueue[T]) Gets(values []T) (gets, quantity uint32)
- func (q *EsQueue[T]) Put(val T) (ok bool, quantity uint32)
- func (q *EsQueue[T]) Puts(values []T) (puts, quantity uint32)
- func (q *EsQueue[T]) Quantity() uint32
- func (q *EsQueue[T]) String() string
- type ListQueue
- type Node
- type Queue
- type RingQueue
- func (q *RingQueue[T]) Capacity() int
- func (q *RingQueue[T]) Dequeue() (T, bool)
- func (q *RingQueue[T]) Enqueue(value T) bool
- func (q *RingQueue[T]) Front() (T, bool)
- func (q *RingQueue[T]) IsFull() bool
- func (q *RingQueue[T]) Length() int
- func (q *RingQueue[T]) LookAll() []T
- func (q *RingQueue[T]) Tail() (T, bool)
- type TinyQueue
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type EsQueue ¶
type EsQueue[T any] struct { // contains filtered or unexported fields }
lock free queue
func NewEsQueue ¶
type ListQueue ¶
type ListQueue[T any] struct { // contains filtered or unexported fields }
func NewListQueue ¶
type RingQueue ¶
type RingQueue[T any] struct { // contains filtered or unexported fields }
func NewRingQueue ¶
type TinyQueue ¶
type TinyQueue[T cmp.CompareLess[T]] struct { // contains filtered or unexported fields }
func New ¶
func New[T cmp.CompareLess[T]](data []T) *TinyQueue[T]
Click to show internal directories.
Click to hide internal directories.