lib/bundler/parallel_workers/worker.rb
# Stop the worker threads by sending a poison object down the request queue 
# so as worker threads after retrieving it, shut themselves down
Stop the worker threads by sending a poison object down the request queue
so as worker threads after retrieving it, shut themselves down
Stop the worker threads by sending a poison object down the request queue so as worker threads after retrieving it shut themselves down
def stop_threads
        @threads.each do
          @request_queue.enq POISON
        end
        @threads.each do |thread|
          thread.join
        end
      end
def stop_threads @threads . each do @request_queue . enq POISON end @threads . each do | thread | thread . join end end
Stop the worker threads by sending a poison object down the request queue
so as worker threads after retrieving it, shut themselves down
Stop the worker threads by sending a poison object down the request queue so as worker threads after retrieving it shut themselves down