An open API service providing package, version and dependency metadata of many open source software ecosystems and registries.

github.com/adrianbrad/queue

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. A linked queue, implemented as a singly linked list, offering O(1) time complexity for enqueue and dequeue operations. The queue maintains pointers to both the head (front) and tail (end) of the list for efficient operations without the need for traversal.

Ecosystem
proxy.golang.org
Latest Release
v1.4.0
10 months ago
Versions
18
Dependent Packages
8
Dependent Repos
2
Links
Registry proxy.golang.org
Source Repository
Docs Documentation
JSON API View JSON
CodeMeta codemeta.json
Package Details
PURL pkg:golang/github.com/adrianbrad/queue
spec
License MIT
Namespace github.com/adrianbrad
First Release over 3 years ago
Last Synced 19 days ago
Repository
Stars 206 on GitHub
Forks 12 on GitHub
Commits 51
Committers 1
Avg per Author 51.0
DDS 0.0
Rankings on proxy.golang.org
Overall Top 4.0%
Dependent packages Top 2.8%
Dependent repos Top 3.5%
Forks Top 6.1%