Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for atomic, version 0.7.3
Filename, size File type Python version Upload date Hashes
Filename, size atomic-0.7.3.tar.gz (8.4 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page