@Override
      public void finish() {
        if (!finished) {
          done.incrementAndGet();
          working.decrementAndGet();
          finished = true;
        }
      }
A handle for each worker thread to offer new items, and drain the remaining ones when done.
planetiler-core/src/main/java/com/onthegomap/planetiler/worker/Distributor.java