# File lib/puma/thread_pool.rb, line 218 def initialize(pool, timeout) @pool = pool @timeout = timeout @running = false end
# File lib/puma/thread_pool.rb, line 224 def start! @running = true @thread = Thread.new do while @running @pool.reap sleep @timeout end end end
# File lib/puma/thread_pool.rb, line 235 def stop @running = false @thread.wakeup end