FutureTask介绍及使用

Future Future是一个接口,它定义了5个方法: boolean cancel(boolean mayInterruptIfRunning); boolean isCancelled(); boolean isDone(); V get() throws InterruptedException, ExecutionException; 简单说明一下接口定义 boolean cancel(
相关文章
相关标签/搜索