Expand description
A value-owning sharded stack backed by concurrent-intrusive-collections.
Values are LIFO within each shard; empty scans and close are not global atomic
operations. The underlying intrusive nodes are private implementation details.
Payloads require Send + 'static, but do not need Sync or Clone.
use concurrent_sharded_stack::{ConcurrentShardedStack, PopError};
let stack = ConcurrentShardedStack::with_concurrency(4);
stack.push(1).unwrap();
stack.push(2).unwrap();
assert_eq!(stack.pop(), Ok(2));
assert_eq!(stack.pop(), Ok(1));
assert_eq!(stack.pop(), Err(PopError::Empty));Structs§
- Concurrent
Sharded Stack - A value-owning concurrent stack with LIFO ordering within each shard.