次の方法で共有


CompletableFuture.AnyOf(CompletableFuture[]) Method

Definition

Returns a new CompletableFuture that is completed when any of the given CompletableFutures complete, with the same result.

[Android.Runtime.Register("anyOf", "([Ljava/util/concurrent/CompletableFuture;)Ljava/util/concurrent/CompletableFuture;", "", ApiSince=24)]
public static Java.Util.Concurrent.CompletableFuture? AnyOf (params Java.Util.Concurrent.CompletableFuture[]? cfs);
[<Android.Runtime.Register("anyOf", "([Ljava/util/concurrent/CompletableFuture;)Ljava/util/concurrent/CompletableFuture;", "", ApiSince=24)>]
static member AnyOf : Java.Util.Concurrent.CompletableFuture[] -> Java.Util.Concurrent.CompletableFuture

Parameters

cfs
CompletableFuture[]

the CompletableFutures

Returns

a new CompletableFuture that is completed with the result or exception of any of the given CompletableFutures when one completes

Attributes

Remarks

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

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