HyperCounter
An atomic, lock-free, hash map-like counter structure.
Example
use ;
use HyperCounter;
let counter: = new;
counter.fetch_add;
counter.fetch_sub;
Documentation
To read the full documentation, visit docs.rs/hypercounter.
An atomic, lock-free, hash map-like counter structure.
use std::sync::atomic::{AtomicUsize, Ordering};
use hypercounter::HyperCounter;
let counter: HyperCounter<String, AtomicUsize> = HyperCounter::new();
counter.fetch_add("example_key".to_string(), 1, Ordering::Relaxed);
counter.fetch_sub("example_key".to_string(), 1, Ordering::Relaxed);
To read the full documentation, visit docs.rs/hypercounter.