Skip to main content
Join the official 2019 Python Developers SurveyStart the survey!

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 hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page