FutureTask 源碼解析

1.FutureTask 用於獲取線程run方法的返回值。下面看個實例代碼java static class MyTask implements Callable<String> { @Override public String call() throws Exception { return "xxx"; } }
相關文章
相關標籤/搜索