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 AtomicLong atomic = AtomicLong(0) atomic += 1 atomic.value
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.3.tar.gz
(8.4 kB
view details)
File details
Details for the file atomic-0.7.3.tar.gz
.
File metadata
- Download URL: atomic-0.7.3.tar.gz
- Upload date:
- Size: 8.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.19.1 setuptools/40.0.0 requests-toolbelt/0.8.0 tqdm/4.24.0 CPython/3.7.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e23baa42ace8d69693f7a9be83377f410be301c29cb3121b070fa9b9473b2e5c |
|
MD5 | 97aae2d88b85a68f23d15120a9492e7e |
|
BLAKE2b-256 | b1c818758210ec92eca9211f742d136c3a6e069bd53f2be34c2ec4af0c225696 |