private synchronized void waitForCompletion() throws InterruptedException {
      while (!done) {
        wait();
      }
    }
true if the task is complete
geode-core/src/main/java/org/apache/geode/internal/util/AbortableTaskService.java