3542 |
|
} |
3543 |
|
|
3544 |
|
/** |
3545 |
< |
* orTimeout completes with TimeoutException if not complete |
3545 |
> |
* orTimeout completes with TimeoutException if not complete |
3546 |
|
*/ |
3547 |
|
public void testOrTimeout() { |
3548 |
|
CompletableFuture<Integer> f = new CompletableFuture<>(); |
3551 |
|
} |
3552 |
|
|
3553 |
|
/** |
3554 |
< |
* orTimeout completes normally if completed before timeout |
3554 |
> |
* orTimeout completes normally if completed before timeout |
3555 |
|
*/ |
3556 |
|
public void testOrTimeout2() { |
3557 |
|
CompletableFuture<Integer> f = new CompletableFuture<>(); |
3561 |
|
} |
3562 |
|
|
3563 |
|
/** |
3564 |
< |
* completeOnTimeout completes with given value if not complete |
3564 |
> |
* completeOnTimeout completes with given value if not complete |
3565 |
|
*/ |
3566 |
|
public void testCompleteOnTimeout() { |
3567 |
|
CompletableFuture<Integer> f = new CompletableFuture<>(); |
3571 |
|
} |
3572 |
|
|
3573 |
|
/** |
3574 |
< |
* completeOnTimeout has no effect if completed within timeout |
3574 |
> |
* completeOnTimeout has no effect if completed within timeout |
3575 |
|
*/ |
3576 |
|
public void testCompleteOnTimeout2() { |
3577 |
|
CompletableFuture<Integer> f = new CompletableFuture<>(); |