Registry / concurrency / atomic-counter

atomic-counter

JSON →
library1.0.1rscratesunverified

Atomic (thread-safe) counters for Rust.

# Cargo.toml [dependencies] atomic-counter = "1.0.1"
INSTALL
IMPORT
SIG · ATOMIC-COUNTER
A
atomic-counter
concurrencyrustv1.0.1
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

AtomicCounter
use atomic_counter::AtomicCounter;

Create and increment an atomic counter.

use atomic_counter::AtomicCounter; fn main() { let counter = AtomicCounter::new(0); counter.inc(); println!("{}", counter.get()); }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
1.0.1latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
7 hits · last 30 days
node
6
Amazon
1
Resources
atomic-counter — cargo add atomic-counter · libregistry