ruma / js_int

JavaScript-interoperable integer types for Rust
MIT License
16 stars 8 forks source link

Add AtomicInt and AtomicUInt types #21

Open jplatte opened 3 years ago

jplatte commented 3 years ago

Would be potentially useful for state-res, which since today uses an AtomicU64 in its tests and benchmarks (previously was using a static mut 😬).

cc @DevinR528

DevinR528 commented 3 years ago

Sweet! I didn't know those were const yet, good to know. I'll keep my eye out to see if there are any more uses but I bet we could find some :smile: