I am using the @Async annotation on one of my functions and that function returns a Future<integer> object.
The method is called a few times and the results are put in a list. is there a way to poll that list in a similar way that ExecutorCompletionService.take() works?
I do not have an executor to pass to ExecutorCompletionService ctor since i am using spring.
Well, I have not found something supplied by string so I implemented my own (comments are more than welcome):