3062 |
|
} |
3063 |
|
} |
3064 |
|
|
3065 |
< |
public void testAllOf_backwards() throws Exception { |
3065 |
> |
public void testAllOf_normal_backwards() throws Exception { |
3066 |
|
for (int k = 1; k < 10; k++) { |
3067 |
|
CompletableFuture<Integer>[] fs |
3068 |
|
= (CompletableFuture<Integer>[]) new CompletableFuture[k]; |
3683 |
|
|
3684 |
|
funs.add((y) -> m.thenCompose(y, new CompletableFutureInc(m))); |
3685 |
|
|
3686 |
+ |
funs.add((y) -> CompletableFuture.allOf(new CompletableFuture<?>[] {y})); |
3687 |
|
funs.add((y) -> CompletableFuture.allOf(new CompletableFuture<?>[] {y, v42})); |
3688 |
|
funs.add((y) -> CompletableFuture.allOf(new CompletableFuture<?>[] {v42, y})); |
3689 |
+ |
funs.add((y) -> CompletableFuture.anyOf(new CompletableFuture<?>[] {y})); |
3690 |
|
funs.add((y) -> CompletableFuture.anyOf(new CompletableFuture<?>[] {y, incomplete})); |
3691 |
|
funs.add((y) -> CompletableFuture.anyOf(new CompletableFuture<?>[] {incomplete, y})); |
3692 |
|
|