Reputation: 77
Looking at a the docs and a couple of examples, im still a little confused. I think I get the bare basics of it, but Im confused on when one would use them.
I guess my main questions..
Upvotes: 1
Views: 1069
Reputation: 77177
CompletionStage
is an interface that (1) can be implemented by any number of classes and (2) does not specify detailed policies such as the thread allocation of asynchronous operations.
CompletableFuture
is a class that implements CompletionStage
(and Future
) and does provide more detail about those policies.
Upvotes: 3