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.1.tar.gz
(10.8 kB
view hashes)
Built Distribution
Close
Hashes for atomic-0.7.1-cp27-none-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ea351b50e037dd9b78275e92d455e92c147462d31a1828ca2d2a32d576c9b041 |
|
MD5 | 6e2cc56b3d5ba1d8b22cd13fe3606ffd |
|
BLAKE2b-256 | 3a44a4e9b4c2715e25c5ef77dda2e4617f4d78290506b3b542acce9de97e9dff |