package
Version:
v0.4.0
Opens a new window with list of versions in this module.
Published: May 5, 2022
License: Apache-2.0
Opens a new window with license information.
Imports: 2
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
Queue is a lock-free unbounded queue.
NewQueue returns an empty queue.
func (q *Queue) Dequeue() interface{}
Dequeue removes and returns the value at the head of the queue.
It returns nil if the queue is empty.
func (q *Queue) Enqueue(v interface{})
Enqueue puts the given value v at the tail of the queue.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.