public static boolean anyOf(BooleanSupplier... conditions) {
    for (BooleanSupplier condition : conditions) {
      if (condition.getAsBoolean()) {
        return true;
      }
    }
    return false;
  }
return the max wait duration for retry
iotdb-core/consensus/src/main/java/org/apache/iotdb/consensus/ratis/utils/Utils.java