GitHub - singaraiona/hyperbridge: Fast multi-producer, multi-consumer unbounded channel with async support.
Hyperbridge
Fast multi-producer, multi-consumer unbounded channel with async support. Inspired by crossbeam unbounded channel.
Examples
Hyperbridge::channel: mpsc
use hyperbridge::channel;
use std::thread;
let (sender, receiver) = hyperbridge::channel::new();
let mut counter = 0;
let threads = 10;
let values = 10000;
let mut handles = vec![];
for i in 0..threads {
let ch = sender.clone();
let jh = thread::spawn(move || {
for _ in 0..values {
ch.send(i).unwrap();
}
});
handles.push(jh);
}
let mut...
Read more at github.com