question: public void testTimedInvokeAny5 ( ) throws Throwable { ExecutorService e = new ForkJoinPool ( 1 ) ; PoolCleaner cleaner = null ; try { cleaner = cleaner ( e ) ; long startTime = System . nanoTime ( ) ; List < Callable < String > > l = new ArrayList < Callable < String > > ( ) ; l . add ( new StringTask ( ) ) ; l . add ( new StringTask ( ) ) ; String result = e . invokeAny ( l , LONG_DELAY_MS , MILLISECONDS ) ; assertSame ( TEST_STRING , result ) ; assertTrue ( millisElapsedSince ( startTime ) < LONG_DELAY_MS ) ; } finally { if ( cleaner != null ) { cleaner . close ( ) ; } } }
target:  timed invokeAny(c) returns result of some task in c