All Downloads are FREE. Search and download functionalities are using the official Maven repository.

play.utils.ImmediateFuture Maven / Gradle / Ivy

There is a newer version: 1.5.0
Show newest version
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