When two or more threads attempt to {@link #complete complete}, {@link #completeExceptionally completeExceptionally}, or {@link #cancel cancel}a CompletableFuture, only one of them succeeds.
In addition to these and related methods for directly manipulating status and results, CompletableFuture implements interface {@link CompletionStage} with the following policies:
CompletableFuture also implements {@link Future} with the followingpolicies:
|
|
|
|