ForkJoinPool.LazySubmit(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.
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.
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.