package
1.19.3
Repository: https://github.com/antigloss/go.git
Documentation: pkg.go.dev

# README

Overview

Package queue offers goroutine-safe Queue implementations such as LockfreeQueue(Lock free queue).

LockfreeQueue

LockfreeQueue is a goroutine-safe Queue implementation. The overall performance of LockfreeQueue is much better than List+Mutex(standard package).

Basic example

lfq := queue.NewLockfreeQueue[int]() // create a LockfreeQueue
lfq.Push(100) // Push an element into the queue
v, ok := lfq.Pop() // Pop an element from the queue

# Functions

NewLockfreeQueue is the only way to get a new, ready-to-use LockfreeQueue.

# Structs

LockfreeQueue is a goroutine-safe Queue implementation.