private void waitForAllToFinish(Phase phase) {
      try {
        phaser.awaitAdvanceInterruptibly(phase.number);
      } catch (InterruptedException e) {
        Thread.currentThread().interrupt();
        throw new RuntimeException(e);
      }
    }
Register {@code action} to run after this worker finished {@code phase}.
planetiler-core/src/main/java/com/onthegomap/planetiler/reader/osm/OsmPhaser.java