- timeout
- the maximum time to wait
- unit
- the time unit of the timeout argument
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, if available.