Sdílet prostřednictvím


CompletableFuture.NewIncompleteFuture Method

Definition

Returns a new incomplete CompletableFuture of the type to be returned by a CompletionStage method.

[Android.Runtime.Register("newIncompleteFuture", "()Ljava/util/concurrent/CompletableFuture;", "GetNewIncompleteFutureHandler", ApiSince=31)]
[Java.Interop.JavaTypeParameters(new System.String[] { "U" })]
public virtual Java.Util.Concurrent.ICompletionStage? NewIncompleteFuture ();
[<Android.Runtime.Register("newIncompleteFuture", "()Ljava/util/concurrent/CompletableFuture;", "GetNewIncompleteFutureHandler", ApiSince=31)>]
[<Java.Interop.JavaTypeParameters(new System.String[] { "U" })>]
abstract member NewIncompleteFuture : unit -> Java.Util.Concurrent.ICompletionStage
override this.NewIncompleteFuture : unit -> Java.Util.Concurrent.ICompletionStage

Returns

a new CompletableFuture

Attributes

Remarks

Returns a new incomplete CompletableFuture of the type to be returned by a CompletionStage method. Subclasses should normally override this method to return an instance of the same class as this CompletableFuture. The default implementation returns an instance of class CompletableFuture.

Added in 9.

Java documentation for java.util.concurrent.CompletableFuture.newIncompleteFuture().

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