Method: SuperPoller::Stats#initialize

Defined in:
lib/super_poller/stats.rb

#initialize(router, out = STDERR, interval = 60) ⇒ Stats

Returns a new instance of Stats.



2
3
4
5
6
7
8
9
# File 'lib/super_poller/stats.rb', line 2

def initialize(router, out = STDERR, interval = 60)
  @router = router
  @out = out
  @semaphore = Mutex.new
  @interval = interval
  reset
  ensure_worker_is_running
end