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

Method collect

future-java/src/main/java/io/trane/future/Future.java:222–222  ·  view source on GitHub ↗

Transforms a list of futures into a future of a list. @param list the futures to collect from @return a future that is satisfied with the future results.

(final List<? extends Future<T>> list)

Source from the content-addressed store, hash-verified

220 * @return a future that is satisfied with the future results.
221 */
222 public static <T> Future<List<T>> collect(final List<? extends Future<T>> list) {
223
224 switch (list.size()) {
225

Callers 14

genMethod · 0.95
collectEmptyMethod · 0.95
collectOneMethod · 0.95
collectTwoMethod · 0.95
collectPromisesMethod · 0.95
collectMixedMethod · 0.95
collectMixedExceptionMethod · 0.95
collectInterruptsMethod · 0.95

Calls

no outgoing calls

Tested by 14

genMethod · 0.76
collectEmptyMethod · 0.76
collectOneMethod · 0.76
collectTwoMethod · 0.76
collectPromisesMethod · 0.76
collectMixedMethod · 0.76
collectMixedExceptionMethod · 0.76
collectInterruptsMethod · 0.76