2861 |
|
} |
2862 |
|
|
2863 |
|
/** |
2864 |
< |
* allOf returns a future completed when all components complete |
2864 |
> |
* allOf returns a future completed normally with the value null |
2865 |
> |
* when all components complete normally |
2866 |
|
*/ |
2867 |
< |
public void testAllOf() throws Exception { |
2867 |
> |
public void testAllOf_normal() throws Exception { |
2868 |
|
for (int k = 1; k < 20; ++k) { |
2869 |
|
CompletableFuture<Integer>[] fs = (CompletableFuture<Integer>[]) new CompletableFuture[k]; |
2870 |
|
for (int i = 0; i < k; ++i) |
2889 |
|
} |
2890 |
|
|
2891 |
|
/** |
2892 |
< |
* anyOf returns a future completed when any components complete |
2892 |
> |
* anyOf returns a future completed normally with a value when |
2893 |
> |
* a component future does |
2894 |
|
*/ |
2895 |
|
public void testAnyOf_normal() throws Exception { |
2896 |
|
for (int k = 0; k < 10; ++k) { |