public boolean isCompleted() {
    for (AbortingRunnable ar : tasks) {
      synchronized (ar) {
        if (!ar.done) {
          return false;
        }
      }
    }
    return true;
  }
Returns true if all tasks are done or aborted.
geode-core/src/main/java/org/apache/geode/internal/util/AbortableTaskService.java