forked from adrianbrad/queue
-
Notifications
You must be signed in to change notification settings - Fork 0
/
doc.go
15 lines (15 loc) · 777 Bytes
/
doc.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// Package queue provides multiple thread-safe generic queue implementations.
// Currently, there are 2 available implementations:
//
// A blocking queue, which provides methods that wait for the
// queue to have available elements when attempting to retrieve an element, and
// waits for a free slot when attempting to insert an element.
//
// A priority queue based on a container.Heap. The elements in the queue
// must implement the Lesser interface, and are ordered based on the
// Less method. The head of the queue is always the highest priority element.
//
// A circular queue, which is a queue that uses a fixed-size slice as
// if it were connected end-to-end. When the queue is full, adding a new element to the queue
// overwrites the oldest element.
package queue