I have seen an example in each of them, but I need to know exactly what is the difference in deep, Because sometimes I think I can use both of them to get the same result, S
A CompletableFuture
is a CompletionStage
. However, as its name suggests, it is
complete
or
completeExceptionally
.Future
: You can use get
method, etc. to get the result.IMHO, in most APIs, like in your example, you should use CompletionStage
, because
complete
to the caller.get
provided by Future
.