422 |
|
* #get()} and related methods to the given value. |
423 |
|
* |
424 |
|
* @param value the result value |
425 |
< |
* @return true if this invocation caused this CompletableFuture |
426 |
< |
* to transition to a completed state, else false |
425 |
> |
* @return {@code true} if this invocation caused this CompletableFuture |
426 |
> |
* to transition to a completed state, else {@code false} |
427 |
|
*/ |
428 |
|
public boolean complete(T value) { |
429 |
|
boolean triggered = |
439 |
|
* and related methods to throw the given exception. |
440 |
|
* |
441 |
|
* @param ex the exception |
442 |
< |
* @return true if this invocation caused this CompletableFuture |
443 |
< |
* to transition to a completed state, else false |
442 |
> |
* @return {@code true} if this invocation caused this CompletableFuture |
443 |
> |
* to transition to a completed state, else {@code false} |
444 |
|
*/ |
445 |
|
public boolean completeExceptionally(Throwable ex) { |
446 |
|
if (ex == null) throw new NullPointerException(); |