T - the future result type of an asynchronous operation.@Contract(threading=IMMUTABLE) public class CompletedFuture<T> extends Object implements Future<T>, Cancellable
public CompletedFuture(T result)
public boolean isCancelled()
isCancelled 在接口中 Future<T>public boolean cancel()
Cancellablecancel 在接口中 Cancellabletrue if the operation or process has been cancelled as a result of
this method call or false if it has already been cancelled or not started.Copyright © 2023. All rights reserved.