lib/checklinks/worklist.rb
# Declare that you're not going to push any more jobs, and wait for the
# current jobs to be processed if you've started that
Declare that you're not going to push any more jobs, and wait for the
current jobs to be processed if you've started that
Declare that you ' re not going to push any more jobs and wait for the current jobs to be processed if you ' ve started that
def close
      @threads.size.times do
        @queue.push nil
      end
      @queue.close
      @threads.each &:join
      @state
    end
def close @threads . size . times do @queue . push nil end @queue . close @threads . each & :join @state end
Declare that you're not going to push any more jobs, and wait for the
current jobs to be processed if you've started that
Declare that you ' re not going to push any more jobs and wait for the current jobs to be processed if you ' ve started that