Skip to content

An atomic class that guarantees atomic updates to its contained value.

License

Notifications You must be signed in to change notification settings

bobozhengsir/atomic

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

71 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Atomic

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.

About

An atomic class that guarantees atomic updates to its contained value.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Python 100.0%