Share via


CompletableFuture.ObtrudeValue(Object) Method

Definition

Forcibly sets or resets the value subsequently returned by method #get() and related methods, whether or not already completed.

[Android.Runtime.Register("obtrudeValue", "(Ljava/lang/Object;)V", "GetObtrudeValue_Ljava_lang_Object_Handler", ApiSince=24)]
public virtual void ObtrudeValue (Java.Lang.Object? value);
[<Android.Runtime.Register("obtrudeValue", "(Ljava/lang/Object;)V", "GetObtrudeValue_Ljava_lang_Object_Handler", ApiSince=24)>]
abstract member ObtrudeValue : Java.Lang.Object -> unit
override this.ObtrudeValue : Java.Lang.Object -> unit

Parameters

value
Object

the completion value

Attributes

Remarks

Forcibly sets or resets the value subsequently returned by method #get() and related methods, whether or not already completed. This method is designed for use only in error recovery actions, and even in such situations may result in ongoing dependent completions using established versus overwritten outcomes.

Java documentation for java.util.concurrent.CompletableFuture.obtrudeValue(T).

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