Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Queue ¶
type Queue[T any] struct { // contains filtered or unexported fields }
Queue A simple thread safe resizable queue.
func (*Queue[T]) Back ¶
func (q *Queue[T]) Back() T
Back return the element in the back of the queue
type QueueChannel ¶
type QueueChannel[T any] struct { // contains filtered or unexported fields }
func NewQueueChannel ¶
func NewQueueChannel[T any](size int) *QueueChannel[T]
func NewQueueChannelFromChan ¶
func NewQueueChannelFromChan[T any](ch chan T) *QueueChannel[T]
func (*QueueChannel[T]) Chan ¶
func (q *QueueChannel[T]) Chan() chan T
func (*QueueChannel[T]) Push ¶
func (q *QueueChannel[T]) Push(elem T)
func (*QueueChannel[T]) Size ¶
func (q *QueueChannel[T]) Size() int
func (*QueueChannel[T]) Stop ¶
func (q *QueueChannel[T]) Stop()
Click to show internal directories.
Click to hide internal directories.