Paul Clapham wrote:
You could do that. I'm not sure what the difference would be if you used CompletableFuture instead but perhaps you could explain what you thought the difference would be when you planned to use it.
Thanks for the response. I updated my function with what you provided, hope this is how we should be handling the future results.
Coming back to by intention of using CompletableFuture, well I wanted to create sort of workflow pipeline and handle the result from all requests asynchronously.
But as I need the list of responses to process those further, that part is little murky for now.
Here is an incomplete code which I am trying to work out.