code: public static void loopFor(int start , int endExclusive , IntConsumer consumer ) {
  		try {
  			pool.submit(() ->IntStream.range(start, endExclusive).parallel().forEach(consumer)).get();
  		} catch (InterruptedException | ExecutionException e) {
  			e.printStackTrace();
  		}
  	}
docs: Concurrent for loop. Each loop with spawn as a thread up to the maximum number of threads.
  
  @param start starting value, inclusive
  @param endExclusive ending value, exclusive
  @param consumer The consumer