class Semian::ThreadSafe::Integer

def destroy

def destroy
  reset
end

def increment(val = 1)

def increment(val = 1)
  @atom.increment(val)
end

def initialize

def initialize
  @atom = Concurrent::AtomicFixnum.new(0)
end

def reset

def reset
  @atom.value = 0
end

def value

def value
  @atom.value
end

def value=(new_value)

def value=(new_value)
  @atom.value = new_value
end