Patro.Common.AtomicCounter.
AtomicCounter
Bases: object
object
A thread-safe incrementing counter.
Initialize a new atomic counter to given initial value (default 0).
__init__
__int__
increment
Atomically increment the counter by value (default 1) and return the new value.
set
Atomically set the counter to a value.