public boolean isCancelled()
isCancelled 在接口中 Future<Void>public Void get() throws InterruptedException, ExecutionException
get 在接口中 Future<Void>InterruptedExceptionExecutionExceptionpublic Void get(long timeout, TimeUnit unit) throws InterruptedException, ExecutionException, TimeoutException
get 在接口中 Future<Void>InterruptedExceptionExecutionExceptionTimeoutExceptionCopyright © 2021. All rights reserved.