CompletionStage.thenAcceptBothAsync

Returns a new CompletionStage that, when this and the other given stage both complete normally, is executed using this stage's default asynchronous execution facility, with the two results as arguments to the supplied action.

See the {@link CompletionStage} documentation for rules covering exceptional completion.

@param other the other CompletionStage @param action the action to perform before completing the returned CompletionStage @param (U) the type of the other CompletionStage's result @return the new CompletionStage

  1. CompletionStage!(void) thenAcceptBothAsync(CompletionStage!(U) other, BiConsumer!(T, U) action)
    interface CompletionStage(T)
    thenAcceptBothAsync
    (
    U
    )
    (,
    BiConsumer!(T, U) action
    )
  2. CompletionStage!(void) thenAcceptBothAsync(CompletionStage!(U) other, BiConsumer!(T, U) action, Executor executor)

Meta