Future.get抛出TimeoutException,并不会中断或者取消任务
static ExecutorService executorService = Executors.newCachedThreadPool(); /** * get 出现TimeoutException,并不会中断或者取消运算线程 * @throws InterruptedException */ @Test void testGetTimeoutException() throws InterruptedException { f.