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

Method selectIndex

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

Selects the index of the first satisfied future. @param list the list of futures to select from @return a future with the index of the first satisfied future of the list.

(final List<Future<T>> list)

Source from the content-addressed store, hash-verified

303 * @return a future with the index of the first satisfied future of the list.
304 */
305 public static <T> Future<Integer> selectIndex(final List<Future<T>> list) {
306
307 switch (list.size()) {
308

Callers 10

genMethod · 0.95
selectIndexEmptyMethod · 0.95
selectIndexOneMethod · 0.95
selectIndexPromisesMethod · 0.95
selectIndexMixedMethod · 0.95
selectIndexInterruptsMethod · 0.95
selectIndexTimeoutMethod · 0.95

Calls

no outgoing calls

Tested by 10

genMethod · 0.76
selectIndexEmptyMethod · 0.76
selectIndexOneMethod · 0.76
selectIndexPromisesMethod · 0.76
selectIndexMixedMethod · 0.76
selectIndexInterruptsMethod · 0.76
selectIndexTimeoutMethod · 0.76