Top 2.8% dependent packages on proxy.golang.org
Top 3.5% dependent repos on proxy.golang.org
Top 6.1% forks on proxy.golang.org
proxy.golang.org : 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.
Registry
-
Source
- Documentation
- JSON
purl: pkg:golang/github.com/adrianbrad/queue
Keywords:
blocking-queue
, circular-queue
, generic
, go
, golang
, priority-queue
, queue
, thread-safe
License: MIT
Latest release: about 1 month ago
First release: almost 3 years ago
Namespace: github.com/adrianbrad
Dependent packages: 8
Dependent repositories: 2
Stars: 206 on GitHub
Forks: 12 on GitHub
Total Commits: 51
Committers: 1
Average commits per author: 51.0
Development Distribution Score (DDS): 0.0
More commit stats: commits.ecosyste.ms
See more repository details: repos.ecosyste.ms
Last synced: 5 days ago