ForkJoinTask.invokeAll

Forks the given tasks, returning when {@code isDone} holds for each task or an (unchecked) exception is encountered, in which case the exception is rethrown. If more than one task encounters an exception, then this method throws any one of these exceptions. If any task encounters an exception, the other may be cancelled. However, the execution status of individual tasks is not guaranteed upon exceptional return. The status of each task may be obtained using {@link #getException()} and related methods to check if they have been cancelled, completed normally or exceptionally, or left unprocessed.

@param t1 the first task @param t2 the second task @throws NullPointerException if any task is null

  1. void invokeAll(IForkJoinTask t1, IForkJoinTask t2)
    class ForkJoinTask(V)
    static
    void
    invokeAll
  2. void invokeAll(IForkJoinTask[] tasks)
  3. Collection!(T) invokeAll(Collection!(T) tasks)

Meta