Udostępnij za pośrednictwem


CountedCompleter.TryComplete Method

Definition

If the pending count is nonzero, decrements the count; otherwise invokes #onCompletion(CountedCompleter) and then similarly tries to complete this task's completer, if one exists, else marks this task as complete.

[Android.Runtime.Register("tryComplete", "()V", "", ApiSince=24)]
public void TryComplete ();
[<Android.Runtime.Register("tryComplete", "()V", "", ApiSince=24)>]
member this.TryComplete : unit -> unit
Attributes

Remarks

If the pending count is nonzero, decrements the count; otherwise invokes #onCompletion(CountedCompleter) and then similarly tries to complete this task's completer, if one exists, else marks this task as complete.

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

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