Runs the recursive future using the default batch size. @param sup the supplier to be called on each recursion. @return the stack-safe recursive future.
(final Supplier<Future<T>> sup)
| 102 | * @return the stack-safe recursive future. |
| 103 | */ |
| 104 | public static final <T> Future<T> apply(final Supplier<Future<T>> sup) { |
| 105 | return apply(DEFAULT_BATCH_SIZE, sup); |
| 106 | } |
| 107 | |
| 108 | /** |
| 109 | * Runs the recursive future using the custom batch size. |