CompletableFuture
-
Core Java
Unit Testing of ExecutorService in Java With No Thread sleep
Unit testing concurrent code, especially code utilizing ExecutorService, presents unique challenges due to its asynchronous nature. Traditional approaches often involve…
Read More » -
Core Java
The Future of Async in Java: CompletableFuture vs Virtual Threads
Asynchronous programming is a cornerstone of modern Java applications, allowing them to handle tasks without blocking the main thread. But…
Read More » -
Core Java
Which thread executes CompletableFuture’s tasks and callbacks?
CompletableFuture is still a relatively fresh concept, despite being introduced almost two years ago (!) in March 2014 with Java…
Read More »