FutureTask.Set(Object) Method

Definition

Sets the result of this future to the given value unless this future has already been set or has been cancelled.

[Android.Runtime.Register("set", "(Ljava/lang/Object;)V", "GetSet_Ljava_lang_Object_Handler")]
protected virtual void Set (Java.Lang.Object? v);
[<Android.Runtime.Register("set", "(Ljava/lang/Object;)V", "GetSet_Ljava_lang_Object_Handler")>]
abstract member Set : Java.Lang.Object -> unit
override this.Set : Java.Lang.Object -> unit

Parameters

v
Object

the value

Attributes

Remarks

Sets the result of this future to the given value unless this future has already been set or has been cancelled.

This method is invoked internally by the #run method upon successful completion of the computation.

Java documentation for java.util.concurrent.FutureTask.set(V).

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