共用方式為


CompletableFuture.AcceptEitherAsync 方法

定義

多載

AcceptEitherAsync(ICompletionStage, IConsumer)
AcceptEitherAsync(ICompletionStage, IConsumer, IExecutor)

AcceptEitherAsync(ICompletionStage, IConsumer)

[Android.Runtime.Register("acceptEitherAsync", "(Ljava/util/concurrent/CompletionStage;Ljava/util/function/Consumer;)Ljava/util/concurrent/CompletableFuture;", "GetAcceptEitherAsync_Ljava_util_concurrent_CompletionStage_Ljava_util_function_Consumer_Handler", ApiSince=24)]
public virtual Java.Util.Concurrent.ICompletionStage? AcceptEitherAsync (Java.Util.Concurrent.ICompletionStage? other, Java.Util.Functions.IConsumer? action);
[<Android.Runtime.Register("acceptEitherAsync", "(Ljava/util/concurrent/CompletionStage;Ljava/util/function/Consumer;)Ljava/util/concurrent/CompletableFuture;", "GetAcceptEitherAsync_Ljava_util_concurrent_CompletionStage_Ljava_util_function_Consumer_Handler", ApiSince=24)>]
abstract member AcceptEitherAsync : Java.Util.Concurrent.ICompletionStage * Java.Util.Functions.IConsumer -> Java.Util.Concurrent.ICompletionStage
override this.AcceptEitherAsync : Java.Util.Concurrent.ICompletionStage * Java.Util.Functions.IConsumer -> Java.Util.Concurrent.ICompletionStage

參數

action
IConsumer

傳回

實作

屬性

備註

此頁面的部分是根據 Android 開放原始碼專案所建立和共用的工作進行修改,並根據 Creative Commons 2.5 屬性授權中所述的詞彙使用。

適用於

AcceptEitherAsync(ICompletionStage, IConsumer, IExecutor)

[Android.Runtime.Register("acceptEitherAsync", "(Ljava/util/concurrent/CompletionStage;Ljava/util/function/Consumer;Ljava/util/concurrent/Executor;)Ljava/util/concurrent/CompletableFuture;", "GetAcceptEitherAsync_Ljava_util_concurrent_CompletionStage_Ljava_util_function_Consumer_Ljava_util_concurrent_Executor_Handler", ApiSince=24)]
public virtual Java.Util.Concurrent.ICompletionStage? AcceptEitherAsync (Java.Util.Concurrent.ICompletionStage? other, Java.Util.Functions.IConsumer? action, Java.Util.Concurrent.IExecutor? executor);
[<Android.Runtime.Register("acceptEitherAsync", "(Ljava/util/concurrent/CompletionStage;Ljava/util/function/Consumer;Ljava/util/concurrent/Executor;)Ljava/util/concurrent/CompletableFuture;", "GetAcceptEitherAsync_Ljava_util_concurrent_CompletionStage_Ljava_util_function_Consumer_Ljava_util_concurrent_Executor_Handler", ApiSince=24)>]
abstract member AcceptEitherAsync : Java.Util.Concurrent.ICompletionStage * Java.Util.Functions.IConsumer * Java.Util.Concurrent.IExecutor -> Java.Util.Concurrent.ICompletionStage
override this.AcceptEitherAsync : Java.Util.Concurrent.ICompletionStage * Java.Util.Functions.IConsumer * Java.Util.Concurrent.IExecutor -> Java.Util.Concurrent.ICompletionStage

參數

action
IConsumer
executor
IExecutor

傳回

實作

屬性

備註

此頁面的部分是根據 Android 開放原始碼專案所建立和共用的工作進行修改,並根據 Creative Commons 2.5 屬性授權中所述的詞彙使用。

適用於