
play.utils.ImmediateFuture Maven / Gradle / Ivy
package play.utils;
import java.util.concurrent.*;
public final class ImmediateFuture implements Future {
@Override
public boolean cancel(boolean mayInterruptIfRunning) {
return false;
}
@Override
public boolean isCancelled() {
return false;
}
@Override
public boolean isDone() {
return true;
}
@Override
public Boolean get() throws InterruptedException, ExecutionException {
return true;
}
@Override
public Boolean get(long timeout, TimeUnit unit) throws InterruptedException, ExecutionException, TimeoutException {
return true;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy