question: public void testInvokeAll5 ( ) throws Throwable { ExecutorService e = new ForkJoinPool ( 1 ) ; PoolCleaner cleaner = null ; try { cleaner = cleaner ( e ) ; List < Callable < String > > l = new ArrayList < Callable < String > > ( ) ; l . add ( new StringTask ( ) ) ; l . add ( new StringTask ( ) ) ; List < Future < String > > futures = e . invokeAll ( l ) ; assertEquals ( 2 , futures . size ( ) ) ; for ( Future < String > future : futures ) assertSame ( TEST_STRING , future . get ( ) ) ; } finally { if ( cleaner != null ) { cleaner . close ( ) ; } } }
target:  invokeAll(c) returns results of all completed tasks in c