drcrallen commented on a change in pull request #5913: Move Caching Cluster 
Client to java streams and allow parallel intermediate merges
URL: https://github.com/apache/incubator-druid/pull/5913#discussion_r206345151
 
 

 ##########
 File path: common/src/main/java/io/druid/common/guava/GuavaUtils.java
 ##########
 @@ -62,4 +66,9 @@ public static Long tryParseLong(@Nullable String string)
 
     return null;
   }
+
+  public static <V> ListenableFuture<List<V>> 
allFuturesAsList(Stream<ListenableFuture<? extends V>> futures)
+  {
+    return Futures.allAsList(futures::iterator);
 
 Review comment:
   added some docs

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to