aws_xray_sdk.core.utils.atomic_counter

Module Contents

class AtomicCounter(initial=0)

Bases:object

A helper class that implements a thread-safe counter.

increment(self, num=1)
decrement(self, num=1)
get_current(self)
reset(self)