Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Queue ¶ added in v3.0.3
type Queue struct {
// contains filtered or unexported fields
}
Queue defines a lock-free Queue.
func NewQueue ¶ added in v3.0.3
func NewQueue() *Queue
NewQueue creates and returns a new lock-free queue.
func (*Queue) Dequeue ¶ added in v3.0.3
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 (*Queue) Enqueue ¶ added in v3.0.3
func (q *Queue) Enqueue(v interface{})
Enqueue adds a value to the tail of the queue.
Click to show internal directories.
Click to hide internal directories.