ForkJoinTask.InvokeAll Method

Definition

Overloads

InvokeAll(ForkJoinTask[])

Forks all tasks in the specified collection, returning when isDone holds for each task or an (unchecked) exception is encountered, in which case the exception is rethrown.

InvokeAll(ICollection)

Forks all tasks in the specified collection, returning when isDone holds for each task or an (unchecked) exception is encountered, in which case the exception is rethrown.

InvokeAll(ForkJoinTask, ForkJoinTask)

Forks the given tasks, returning when isDone holds for each task or an (unchecked) exception is encountered, in which case the exception is rethrown.

InvokeAll(ForkJoinTask[])

Forks all tasks in the specified collection, returning when isDone holds for each task or an (unchecked) exception is encountered, in which case the exception is rethrown.

[Android.Runtime.Register("invokeAll", "([Ljava/util/concurrent/ForkJoinTask;)V", "")]
public static void InvokeAll (params Java.Util.Concurrent.ForkJoinTask[]? tasks);
[<Android.Runtime.Register("invokeAll", "([Ljava/util/concurrent/ForkJoinTask;)V", "")>]
static member InvokeAll : Java.Util.Concurrent.ForkJoinTask[] -> unit

Parameters

tasks
ForkJoinTask[]

the collection of tasks

Attributes

Remarks

Java documentation for java.util.concurrent.ForkJoinTask.invokeAll(java.util.Collection).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to

InvokeAll(ICollection)

Forks all tasks in the specified collection, returning when isDone holds for each task or an (unchecked) exception is encountered, in which case the exception is rethrown.

[Android.Runtime.Register("invokeAll", "(Ljava/util/Collection;)Ljava/util/Collection;", "")]
[Java.Interop.JavaTypeParameters(new System.String[] { "T extends java.util.concurrent.ForkJoinTask<?>" })]
public static System.Collections.ICollection? InvokeAll (System.Collections.ICollection? tasks);
[<Android.Runtime.Register("invokeAll", "(Ljava/util/Collection;)Ljava/util/Collection;", "")>]
[<Java.Interop.JavaTypeParameters(new System.String[] { "T extends java.util.concurrent.ForkJoinTask<?>" })>]
static member InvokeAll : System.Collections.ICollection -> System.Collections.ICollection

Parameters

tasks
ICollection

the collection of tasks

Returns

the tasks argument, to simplify usage

Attributes

Remarks

Forks all tasks in the specified collection, returning when 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, others 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 #getException() and related methods to check if they have been cancelled, completed normally or exceptionally, or left unprocessed.

Java documentation for java.util.concurrent.ForkJoinTask.invokeAll(java.util.Collection<T>).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to

InvokeAll(ForkJoinTask, ForkJoinTask)

Forks the given tasks, returning when isDone holds for each task or an (unchecked) exception is encountered, in which case the exception is rethrown.

[Android.Runtime.Register("invokeAll", "(Ljava/util/concurrent/ForkJoinTask;Ljava/util/concurrent/ForkJoinTask;)V", "")]
public static void InvokeAll (Java.Util.Concurrent.ForkJoinTask? t1, Java.Util.Concurrent.ForkJoinTask? t2);
[<Android.Runtime.Register("invokeAll", "(Ljava/util/concurrent/ForkJoinTask;Ljava/util/concurrent/ForkJoinTask;)V", "")>]
static member InvokeAll : Java.Util.Concurrent.ForkJoinTask * Java.Util.Concurrent.ForkJoinTask -> unit

Parameters

t1
ForkJoinTask

the first task

t2
ForkJoinTask

the second task

Attributes

Remarks

Forks the given tasks, returning when 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 #getException() and related methods to check if they have been cancelled, completed normally or exceptionally, or left unprocessed.

Java documentation for java.util.concurrent.ForkJoinTask.invokeAll(java.util.concurrent.ForkJoinTask<?>, java.util.concurrent.ForkJoinTask<?>).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to