I have the following CompletableFuture with supplyAync that uses a client to call an external http endpoint.
CompletableFuture<T> future = CompletableFuture.supplyAsync(() -> {
**call to external client**
})
If I were to do future.get twice with different timeouts for both calls, would that mean the external client is being called twice as well? I am not sure what the behavior that is in the future is at this point.
Thanks