T - The type of object in this Future.public class DoneFuture<T> extends Object implements RunnableFuture<T>
Future that is always done and will just yield the object that was given at creation
time.public boolean isCancelled()
isCancelled 在接口中 Future<T>public void run()
run 在接口中 Runnablerun 在接口中 RunnableFuture<T>public static <T> DoneFuture<T> of(@Nullable T result)
Copyright © 2014–2023 The Apache Software Foundation. All rights reserved.