先來看類結構code
public class FutureTask<V> implements RunnableFuture<V> { }
public interface RunnableFuture<V> extends Runnable, Future<V> { }
public interface Future<V> { // boolean cancel(boolean mayInterruptIfRunning); // boolean isCancelled(); // boolean isDone(); // V get() throws InterruptedException, ExecutionException; // V get(long timeout, TimeUnit unit) throws InterruptedException, ExecutionException, TimeoutException; }
後續再分析叭,今天先觀摩其餘人的文章。get