ubq 1.0.0

Lock-free queue built from linked blocks for concurrent producers and consumers.
Documentation

UBQ

Crates.io Docs.rs

UBQ is a lock-free queue built from linked blocks, intended for concurrent producers and consumers.

Usage

Add UBQ to your Cargo manifest:

ubq = "0.1"

A minimal example that allocates a small ring of blocks and moves a value through it:

use ubq::{UBQ, UBQBounds};

fn main() {
    let mut queue = UBQ::new(2, UBQBounds { min: 2, max: 3 });
    queue.push("hello").unwrap();
    assert_eq!(queue.pop().unwrap(), "hello");
}

See the full API docs on docs.rs and the crate page on crates.io.