Share via


CountedCompleter.FirstComplete Method

Definition

If this task's pending count is zero, returns this task; otherwise decrements its pending count and returns null.

[Android.Runtime.Register("firstComplete", "()Ljava/util/concurrent/CountedCompleter;", "", ApiSince=24)]
public Java.Util.Concurrent.CountedCompleter? FirstComplete ();
[<Android.Runtime.Register("firstComplete", "()Ljava/util/concurrent/CountedCompleter;", "", ApiSince=24)>]
member this.FirstComplete : unit -> Java.Util.Concurrent.CountedCompleter

Returns

this task, if pending count was zero, else null

Attributes

Remarks

If this task's pending count is zero, returns this task; otherwise decrements its pending count and returns null. This method is designed to be used with #nextComplete in completion traversal loops.

Java documentation for java.util.concurrent.CountedCompleter.firstComplete().

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