Share via


ForkJoinPool.LazySubmit(ForkJoinTask) Method

Definition

Submits the given task without guaranteeing that it will eventually execute in the absence of available active threads.

[Android.Runtime.Register("lazySubmit", "(Ljava/util/concurrent/ForkJoinTask;)Ljava/util/concurrent/ForkJoinTask;", "GetLazySubmit_Ljava_util_concurrent_ForkJoinTask_Handler", ApiSince=36)]
[Java.Interop.JavaTypeParameters(new System.String[] { "T" })]
public virtual Java.Util.Concurrent.ForkJoinTask? LazySubmit(Java.Util.Concurrent.ForkJoinTask? task);
[<Android.Runtime.Register("lazySubmit", "(Ljava/util/concurrent/ForkJoinTask;)Ljava/util/concurrent/ForkJoinTask;", "GetLazySubmit_Ljava_util_concurrent_ForkJoinTask_Handler", ApiSince=36)>]
[<Java.Interop.JavaTypeParameters(new System.String[] { "T" })>]
abstract member LazySubmit : Java.Util.Concurrent.ForkJoinTask -> Java.Util.Concurrent.ForkJoinTask
override this.LazySubmit : Java.Util.Concurrent.ForkJoinTask -> Java.Util.Concurrent.ForkJoinTask

Parameters

task
ForkJoinTask

the task

Returns

the task

Attributes

Remarks

Submits the given task without guaranteeing that it will eventually execute in the absence of available active threads. In some contexts, this method may reduce contention and overhead by relying on context-specific knowledge that existing threads (possibly including the calling thread if operating in this pool) will eventually be available to execute the task.

Added in 19.

Java documentation for java.util.concurrent.ForkJoinPool.lazySubmit(java.util.concurrent.ForkJoinTask<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