Share via


ForkJoinWorkerThread.OnTermination(Throwable) Method

Definition

Performs cleanup associated with termination of this worker thread.

[Android.Runtime.Register("onTermination", "(Ljava/lang/Throwable;)V", "GetOnTermination_Ljava_lang_Throwable_Handler")]
protected virtual void OnTermination (Java.Lang.Throwable? exception);
[<Android.Runtime.Register("onTermination", "(Ljava/lang/Throwable;)V", "GetOnTermination_Ljava_lang_Throwable_Handler")>]
abstract member OnTermination : Java.Lang.Throwable -> unit
override this.OnTermination : Java.Lang.Throwable -> unit

Parameters

exception
Throwable

the exception causing this thread to abort due to an unrecoverable error, or null if completed normally

Attributes

Remarks

Performs cleanup associated with termination of this worker thread. If you override this method, you must invoke super.onTermination at the end of the overridden method.

Java documentation for java.util.concurrent.ForkJoinWorkerThread.onTermination(java.lang.Throwable).

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