CompletableFuture.Complete(Object) Method

Definition

If not already completed, sets the value returned by #get() and related methods to the given value.

[Android.Runtime.Register("complete", "(Ljava/lang/Object;)Z", "GetComplete_Ljava_lang_Object_Handler", ApiSince=24)]
public virtual bool Complete (Java.Lang.Object? value);
[<Android.Runtime.Register("complete", "(Ljava/lang/Object;)Z", "GetComplete_Ljava_lang_Object_Handler", ApiSince=24)>]
abstract member Complete : Java.Lang.Object -> bool
override this.Complete : Java.Lang.Object -> bool

Parameters

value
Object

the result value

Returns

true if this invocation caused this CompletableFuture to transition to a completed state, else false

Attributes

Remarks

If not already completed, sets the value returned by #get() and related methods to the given value.

Java documentation for java.util.concurrent.CompletableFuture.complete(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