CountedCompleter.OnCompletion(CountedCompleter) 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.
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.
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.