Relative Content

Tag Archive for javacompletable-future

Why is thenAccept not working in the loop?

Playing around with CompletableFutures and I coincided these outputs that I am not able to make sense of. I will share two snippets which should behave same in my perception. But they are not.