ForkJoinTask.get

Waits if necessary for at most the given time for the computation to complete, and then retrieves its result, if available.

@param timeout the maximum time to wait @param unit the time unit of the timeout argument @return the computed result @throws CancellationException if the computation was cancelled @throws ExecutionException if the computation threw an exception @throws InterruptedException if the current thread is not a member of a ForkJoinPool and was interrupted while waiting @throws TimeoutException if the wait timed out

  1. V get()
  2. V get(Duration timeout)
    class ForkJoinTask(V)
    final
    V
    get
    (
    Duration timeout
    )

Meta