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)
| 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 |
no outgoing calls