public interface TaskCompletionService<V> extends CompletionService<V>
Promise<V> submit(Runnable task, V result)
submit in interface CompletionService<V>Promise<V> take() throws InterruptedException
take in interface CompletionService<V>InterruptedExceptionPromise<V> poll()
poll in interface CompletionService<V>Promise<V> poll(long timeout, TimeUnit unit) throws InterruptedException
poll in interface CompletionService<V>InterruptedExceptionCopyright © 2021. All rights reserved.