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