# File lib/puma/thread_pool.rb, line 169 def shutdown @mutex.synchronize do @shutdown = true @cond.broadcast @auto_trim.stop if @auto_trim end # Use this instead of #each so that we don't stop in the middle # of each and see a mutated object mid #each @workers.first.join until @workers.empty? @spawned = 0 @workers = [] end