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.4.tar.gz
(10.9 kB
view hashes)