require 'concurrent/atomics'

class TestView < Peek::Views::View
  class << self
    attr_accessor :counter
  end
  self.counter = Concurrent::AtomicReference.new(0)

  def results
    self.class.counter.update { |value| value + 1 }

    {
      number: self.class.counter.value
    }
  end

  def partial_path
    "peek/test_view"
  end
end

require 'concurrent/atomics'

class TestView < Peek::Views::View
  class << self
    attr_accessor :counter
  end
  self.counter = Concurrent::AtomicFixnum.new

  def results
    {
      number: self.class.counter.increment
    }
  end

  def partial_path
    "peek/test_view"
  end
end

Use Concurrent::AtomicFixnum for test view
Use Concurrent::AtomicFixnum for test view

This is basically what was there before, but using the specific class
makes the intention a little clearer.
