corda/classpath/java/util/concurrent/CompletionService.java
2014-01-09 09:50:15 -07:00

14 lines
346 B
Java

package java.util.concurrent;
public interface CompletionService<T> {
public Future<T> submit(Callable<T> task);
public Future<T> submit(Runnable task, T result);
public Future<T> take() throws InterruptedException;
public Future<T> poll();
public Future<T> poll(long timeout, TimeUnit unit) throws InterruptedException;
}