- timeout
- Time to wait before cancelling the operation.
- unit
- The time unit for the timeout.
Documentation for this section has not yet been entered.
Type Reason Java.Util.Concurrent.CancellationException If the computation was cancelled. Java.Util.Concurrent.ExecutionException If the computation threw an exception. Java.Lang.InterruptedException If the current thread was interrupted while waiting. Java.Util.Concurrent.TimeoutException If the wait timed out.
Waits if necessary for at most the given time for the computation to complete, and then retrieves its result.