ForkJoinPool.Invoke(ForkJoinTask) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Performs the given task, returning its result upon completion.
[Android.Runtime.Register("invoke", "(Ljava/util/concurrent/ForkJoinTask;)Ljava/lang/Object;", "GetInvoke_Ljava_util_concurrent_ForkJoinTask_Handler")]
[Java.Interop.JavaTypeParameters(new System.String[] { "T" })]
public virtual Java.Lang.Object? Invoke (Java.Util.Concurrent.ForkJoinTask? task);
[<Android.Runtime.Register("invoke", "(Ljava/util/concurrent/ForkJoinTask;)Ljava/lang/Object;", "GetInvoke_Ljava_util_concurrent_ForkJoinTask_Handler")>]
[<Java.Interop.JavaTypeParameters(new System.String[] { "T" })>]
abstract member Invoke : Java.Util.Concurrent.ForkJoinTask -> Java.Lang.Object
override this.Invoke : Java.Util.Concurrent.ForkJoinTask -> Java.Lang.Object
Parameters
- task
- ForkJoinTask
the task
Returns
the task's result
- Attributes
Remarks
Performs the given task, returning its result upon completion. If the computation encounters an unchecked Exception or Error, it is rethrown as the outcome of this invocation. Rethrown exceptions behave in the same way as regular exceptions, but, when possible, contain stack traces (as displayed for example using ex.printStackTrace()
) of both the current thread as well as the thread actually encountering the exception; minimally only the latter.
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.