java - How to wait for list of `Future`s created using different `ExecutorServices` -
OK, so I know that the first answer / comment here is "using a That's why I have a list of thread pools ( Is there an existing class that will do this ( For each, with the expiration of I have seen this post but instead of wrapping their list, the Per Louis's comment, which I was looking for This will make me wait for everyone to complete and then fail The rules of the law! executable service Use and use invokeAll ". Executives Services ) and this is a good reason (which I will not bother with people). What I need to do is use callable on each thread pool submit (no problem). Now I have a collection of future examples, each created on a different executable service , and I want to wait for them to complete ( Be able to provide more wrap the list of future frequencies and allow the wait until everything is done )? If not, appreciate the tips on a skilled mechanism received was thinking of calling, but the total time passed for each call has to be calculated. future is spread out.
Comments
Post a Comment