Udostępnij za pośrednictwem


CompletableFuture.CompletedStage(Object) Method

Definition

Returns a new CompletionStage that is already completed with the given value and supports only those methods in interface CompletionStage.

[Android.Runtime.Register("completedStage", "(Ljava/lang/Object;)Ljava/util/concurrent/CompletionStage;", "", ApiSince=31)]
[Java.Interop.JavaTypeParameters(new System.String[] { "U" })]
public static Java.Util.Concurrent.ICompletionStage? CompletedStage (Java.Lang.Object? value);
[<Android.Runtime.Register("completedStage", "(Ljava/lang/Object;)Ljava/util/concurrent/CompletionStage;", "", ApiSince=31)>]
[<Java.Interop.JavaTypeParameters(new System.String[] { "U" })>]
static member CompletedStage : Java.Lang.Object -> Java.Util.Concurrent.ICompletionStage

Parameters

value
Object

the value

Returns

the completed CompletionStage

Attributes

Remarks

Returns a new CompletionStage that is already completed with the given value and supports only those methods in interface CompletionStage.

Added in 9.

Java documentation for java.util.concurrent.CompletableFuture.completedStage(U).

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