Consider a code (run in aws lambda):
ForkJoinPool forkJoinPool = new ForkJoinPool(threadCount); var deleteFiles = CompletableFuture.runAsync(() ->