Friday, May 3, 2019

Streaming Java CompletableFutures in Completion Order

Java 8 brought us tools like CompletableFuture and Stream API… let’s try to combine them both and create a Stream that returns values from a collection of CompletableFutures as they arrive.

This approach was also employed when developing 1.0.0 of parallel-collectors.



from DZone.com Feed http://bit.ly/2vvScwe

No comments:

Post a Comment