{"repo":"adrianbrad/queue","free":true,"listed":false,"github":"https://github.com/adrianbrad/queue","clone":"git clone https://github.com/adrianbrad/queue.git","description":"⏪️ Go package providing multiple queue implementations. Developed in a thread-safe generic way.","language":"Go","stars":362,"topics":["generic","golang","queue","thread-safe","go","blocking-queue","circular-queue","priority-queue","delay-queue"],"license":"MIT","category":"dev-tools","readme_excerpt":"queue --- Thread-safe, generic FIFO, priority, circular, linked, and delay queues for Go. Features - Five queue flavours behind one Queue[T comparable] interface, so you can swap implementations without changing call sites. - Generic types with no reflection; zero third-party dependencies. - Steady-state zero-alloc reads on every queue and zero-alloc offer/get on Circular , Linked , Priority , and Delay . - Blocking variants ( OfferWait , GetWait , PeekWait ) for producer/consumer workloads. - Delay queue for timers, retry scheduling, and TTL expiry. - 100% test coverage and race-tested in CI. Full API reference at pkg.go.dev/github.com/adrianbrad/queue . queue Features Installation Import Quick start Choosing a queue Usage Queue Interface Blocking Queue Priority Queue Circular Queue Linked Queue Delay Queue Benchmarks Contributing Security License Installation To add this package as a dependency to your project, run: Import To use this package in your project, you can import it as follows: Quick start Every implementation satisfies the same Queue[T comparable] interface. Pick a different constructor ( NewBlocking , NewPriority , NewCircular , NewDelay ) without changing the call sites. Choosing a queue Queue Ordering Capacity Blocks? Pick this when… ------------ --------------------- ----------------------------------------------- ---------------------------------------------------- ---------------------------------------------------------------------------------------------","default_branch":null,"files":null,"tree":[],"storefront":"/r/adrianbrad","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/adrianbrad/queue/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}