Java 9 CompletableFuture API improvements – delayedExecutor
Java 9 introduces a couple of improvements in CompletableFuture API. Today let’s take a look at new delayedExecutor
static method.
Java 9 introduces a couple of improvements in CompletableFuture API. Today let’s take a look at new delayedExecutor
static method.
One of the improvements in Java 9 CompletableFuture is the orTimeout
method:
CompletableFuture orTimeout(long timeout, TimeUnit unit)
Let’s see what happens when async calls exception is raised and how we can handle this situation.
Let’s see how we can paralellize java application. Suppose we have asked to develop application where given the libraries list we need to calculate the number of books in each library. Suppose calculation is an expensive operation. The first thing that comes to our mind is to do this by streams.