ForkJoinTask.get

Waits if necessary for the computation to complete, and then retrieves its result.

@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

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

Meta