private static void waitForCompletion()

in ratis-logservice/src/main/java/org/apache/ratis/logservice/tool/VerificationTool.java [190:204]


  private static void waitForCompletion(List<Future<?>> futures) {
        for (Future<?> future : futures) {
            try {
                Object object = future.get();
                if (object != null) {
                    LOG.error("Operation failed with error ", object);
                    System.exit(-1);
                }
            } catch (Exception e) {
                LOG.error("Got exception ", e);
                System.exit(-1);
            }
        }
        LOG.info("All operations finished");
    }