529530531532533534535536537538539
} }); while (tasksSubmitted.longValue() > tasksFinished.longValue()) { synchronized (context) { try { context.wait(100); } catch (InterruptedException e) { log.error("Iteration was interrupted", e); Thread.currentThread().interrupt(); return; }