CountedCompleter.OnExceptionalCompletion(Throwable, 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 #completeExceptionally(Throwable)
is invoked or method #compute
throws an exception, and this task has not already
otherwise completed normally.
[Android.Runtime.Register("onExceptionalCompletion", "(Ljava/lang/Throwable;Ljava/util/concurrent/CountedCompleter;)Z", "GetOnExceptionalCompletion_Ljava_lang_Throwable_Ljava_util_concurrent_CountedCompleter_Handler", ApiSince=24)]
public virtual bool OnExceptionalCompletion (Java.Lang.Throwable? ex, Java.Util.Concurrent.CountedCompleter? caller);
[<Android.Runtime.Register("onExceptionalCompletion", "(Ljava/lang/Throwable;Ljava/util/concurrent/CountedCompleter;)Z", "GetOnExceptionalCompletion_Ljava_lang_Throwable_Ljava_util_concurrent_CountedCompleter_Handler", ApiSince=24)>]
abstract member OnExceptionalCompletion : Java.Lang.Throwable * Java.Util.Concurrent.CountedCompleter -> bool
override this.OnExceptionalCompletion : Java.Lang.Throwable * Java.Util.Concurrent.CountedCompleter -> bool
Parameters
- ex
- Throwable
the exception
- caller
- CountedCompleter
the task invoking this method (which may be this task itself)
Returns
true
if this exception should be propagated to this
task's completer, if one exists
- Attributes
Remarks
Performs an action when method #completeExceptionally(Throwable)
is invoked or method #compute
throws an exception, and this task has not already otherwise completed normally. On entry to this method, this task ForkJoinTask#isCompletedAbnormally
. The return value of this method controls further propagation: If true
and this task has a completer that has not completed, then that completer is also completed exceptionally, with the same exception as this completer. The default implementation of this method does nothing except return true
.
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.