question: public void testInvokeAny6 ( ) 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 ( ) ) ; String result = e . invokeAny ( l ) ; assertSame ( TEST_STRING , result ) ; } finally { if ( cleaner != null ) { cleaner . close ( ) ; } } }
target:  invokeAny(c) returns result of some task in c if at least one completes