@@ -0,0 +1,981 @@
+package sample.jcu.future;//package juc.future;%0A//%0A//import sun.nio.ch.ThreadPool;%0A//%0A//import java.util.concurrent.*;%0A//%0A///**%0A// * Created by kanglei on 20/10/2017.%0A// */%0A//public class StudyFuture %7B%0A//    static class MyCallable implements Callable%7B%0A//        @Override%0A//        public Object call() throws Exception %7B%0A//            TimeUnit.SECONDS.sleep(5);%0A//            return %22CALL ME.%22;%0A//        %7D%0A//    %7D%0A//    public static void main(String%5B%5D args) %7B%0A//        ThreadPoolExecutor threadPoolExecutor = new ThreadPoolExecutor(1,1,5, TimeUnit.SECONDS,new ArrayBlockingQueue%3CRunnable%3E(2));%0A//        Future future = threadPoolExecutor.submit(new MyCallable());%0A//        try %7B%0A//            System.out.println(future.get());%0A//        %7D catch (InterruptedException e) %7B%0A//            e.printStackTrace();%0A//        %7D catch (ExecutionException e) %7B%0A//            e.printStackTrace();%0A//        %7D%0A//        threadPoolExecutor.shutdown();//%E7%BA%BF%E7%A8%8B%E6%B1%A0%E7%AD%89%E5%BE%85%E4%BB%BB%E5%8A%A1%E5%AE%8C%E6%88%90%E5%90%8E %E5%85%B3%E9%97%AD%0A//    %7D%0A//%0A//%0A//%0A//%7D%0A

add jcu future