Udostępnij za pośrednictwem


CountedCompleter.OnCompletion(CountedCompleter) Method

Definition

Performs an action when method #tryComplete is invoked and the pending count is zero, or when the unconditional method #complete is invoked.

[Android.Runtime.Register("onCompletion", "(Ljava/util/concurrent/CountedCompleter;)V", "GetOnCompletion_Ljava_util_concurrent_CountedCompleter_Handler", ApiSince=24)]
public virtual void OnCompletion (Java.Util.Concurrent.CountedCompleter? caller);
[<Android.Runtime.Register("onCompletion", "(Ljava/util/concurrent/CountedCompleter;)V", "GetOnCompletion_Ljava_util_concurrent_CountedCompleter_Handler", ApiSince=24)>]
abstract member OnCompletion : Java.Util.Concurrent.CountedCompleter -> unit
override this.OnCompletion : Java.Util.Concurrent.CountedCompleter -> unit

Parameters

caller
CountedCompleter

the task invoking this method (which may be this task itself)

Attributes

Remarks

Performs an action when method #tryComplete is invoked and the pending count is zero, or when the unconditional method #complete is invoked. By default, this method does nothing. You can distinguish cases by checking the identity of the given caller argument. If not equal to this, then it is typically a subtask that may contain results (and/or links to other results) to combine.

Java documentation for java.util.concurrent.CountedCompleter.onCompletion(java.util.concurrent.CountedCompleter<?>).

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