次の方法で共有


ICompletionStage.ToCompletableFuture Method

Definition

Returns a CompletableFuture maintaining the same completion properties as this stage.

[Android.Runtime.Register("toCompletableFuture", "()Ljava/util/concurrent/CompletableFuture;", "GetToCompletableFutureHandler:Java.Util.Concurrent.ICompletionStageInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null", ApiSince=24)]
public Java.Util.Concurrent.CompletableFuture? ToCompletableFuture ();
[<Android.Runtime.Register("toCompletableFuture", "()Ljava/util/concurrent/CompletableFuture;", "GetToCompletableFutureHandler:Java.Util.Concurrent.ICompletionStageInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null", ApiSince=24)>]
abstract member ToCompletableFuture : unit -> Java.Util.Concurrent.CompletableFuture

Returns

the CompletableFuture

Attributes

Remarks

Returns a CompletableFuture maintaining the same completion properties as this stage. If this stage is already a CompletableFuture, this method may return this stage itself. Otherwise, invocation of this method may be equivalent in effect to thenApply(x -> x), but returning an instance of type CompletableFuture.

Java documentation for java.util.concurrent.CompletionStage.toCompletableFuture().

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