MCPcopy Create free account
hub / github.com/traneio/future / apply

Method apply

future-java/src/main/java/io/trane/future/Tailrec.java:104–106  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

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.

Callers 3

tailrecLoopMethod · 0.95
tailrecLoopDelayedMethod · 0.95
loopMethod · 0.95

Calls 3

runSyncMethod · 0.95
submitMethod · 0.95
getMethod · 0.65

Tested by 2

tailrecLoopMethod · 0.76
tailrecLoopDelayedMethod · 0.76