Module: Ratomic
- Defined in:
- lib/ratomic.rb,
lib/ratomic/map.rb,
lib/ratomic/pool.rb,
lib/ratomic/queue.rb,
lib/ratomic/counter.rb,
lib/ratomic/version.rb,
lib/ratomic/undefined.rb
Overview
Ratomic provides mutable data structures for Ruby Ractors. Its primitives are backed by native Rust concurrency libraries so Ruby code can share useful state across Ractors without falling back to one global lock. Pool uses Ruby Ractor ownership-transfer primitives instead of the native Rust path.
The public API currently includes Counter, Map, Queue, and Pool.
Defined Under Namespace
Classes: Counter, Error, Map, Pool, Queue, Undefined
Constant Summary collapse
- VERSION =
Current gem version string.
"0.3.1"- UNDEFINED =
Internal shareable missing-value sentinel.
Ractor.make_shareable(Undefined.new)