public interface TaskWaiter
void waitFor() throws InterruptedException, ExecutionException
waitFor
InterruptedException
- if any.ExecutionException
- if any.void waitFor(long timeout, TimeUnit unit) throws InterruptedException, ExecutionException, TimeoutException
waitFor
timeout
- a long.unit
- a TimeUnit
object.InterruptedException
- if any.ExecutionException
- if any.TimeoutException
- if any.Copyright © 2015. All rights reserved.