ForkJoinTask.PeekNextLocalTask 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.
Returns, but does not unschedule or execute, a task queued by the current thread but not yet executed, if one is immediately available.
[Android.Runtime.Register("peekNextLocalTask", "()Ljava/util/concurrent/ForkJoinTask;", "")]
protected static Java.Util.Concurrent.ForkJoinTask? PeekNextLocalTask ();
[<Android.Runtime.Register("peekNextLocalTask", "()Ljava/util/concurrent/ForkJoinTask;", "")>]
static member PeekNextLocalTask : unit -> Java.Util.Concurrent.ForkJoinTask
Returns
the next task, or null
if none are available
- Attributes
Remarks
Returns, but does not unschedule or execute, a task queued by the current thread but not yet executed, if one is immediately available. There is no guarantee that this task will actually be polled or executed next. Conversely, this method may return null even if a task exists but cannot be accessed without contention with other threads. This method is designed primarily to support extensions, and is unlikely to be useful otherwise.
Java documentation for java.util.concurrent.ForkJoinTask.peekNextLocalTask()
.
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.