CountedCompleter.OnExceptionalCompletion(Throwable, CountedCompleter) Method

Definition

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

Boolean

true if this exception should be propagated to this task's completer, if one exists

Attributes

Remarks

Java documentation for java.util.concurrent.CountedCompleter.onExceptionalCompletion(java.lang.Throwable, 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