V get()
<T> List<Future<T>> invokeAll(Collection<? extends Callable<T>> tasks)
Future.isDone()
is true
for
each element of the returned list. <T> Future<T> submit(Callable<T> task)
get
method
will return the task's result upon successful completion.If you would
like to immediately block waiting for a task, you can use constructions
of the form result
= exec.submit(aCallable).get();
<T> List<Future<T>> doItYourselfInvokeAll(ExecutorService executor, Collection<? extends Callable<T>> tasks) {