java.util.concurrent.CompletionService Maven / Gradle / Ivy
package java.util.concurrent;
public interface CompletionService {
Future submit(Callable task);
Future submit(Runnable task, V result);
Future take() throws InterruptedException;
Future poll();
Future poll(long timeout, TimeUnit unit) throws InterruptedException;
}