An atomic class that guarantees atomic updates to its contained value.
Project description
An atomic class that guarantees atomic updates to its contained value.
from atomic import Atomic atomic = Atomic(0) atomic.update(lambda v: v + 1)
Installation
To install atomic, use pip :
pip install atomic
Acknowledgement
This is heavily inspired by ruby-atomic.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
atomic-0.7.0.tar.gz
(11.7 kB
view hashes)
Built Distribution
Close
Hashes for atomic-0.7.0-cp27-none-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 16f8a191a2e196b751b03be6da8e2c5ef56f7e9ddad46a2f09b8136c30e5d1d6 |
|
MD5 | f962eb94c9cb7bbc3940810d40884570 |
|
BLAKE2b-256 | 8d4be40effa5c6ea4a274fdacc556025ce7dac16e40cf04a0470b949f89291d4 |