Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ArrQueue ¶
type ArrQueue[T any] struct { // contains filtered or unexported fields }
func NewArrQueue ¶
type ConcurrentQueue ¶
type ConcurrentQueue[T any] struct { // contains filtered or unexported fields }
func NewConcurrentQueue ¶
func NewConcurrentQueue[T any]() *ConcurrentQueue[T]
func (*ConcurrentQueue[T]) Dequeue ¶
func (q *ConcurrentQueue[T]) Dequeue() (data T, ok bool)
func (*ConcurrentQueue[T]) Enqueue ¶
func (q *ConcurrentQueue[T]) Enqueue(data T)
func (*ConcurrentQueue[T]) TakeFirst ¶
func (q *ConcurrentQueue[T]) TakeFirst() (data T, ok bool)
func (*ConcurrentQueue[T]) ToSlice ¶
func (q *ConcurrentQueue[T]) ToSlice() []T
Click to show internal directories.
Click to hide internal directories.