CompletionStage.thenCombineAsync

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 function.

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

@param other the other CompletionStage @param fn the function to use to compute the value of the returned CompletionStage @param (U) the type of the other CompletionStage's result @param (V) the function's return type @return the new CompletionStage

  1. CompletionStage!(V) thenCombineAsync(CompletionStage!(U) other, BiFunction!(T, U, V) fn)
    interface CompletionStage(T)
    thenCombineAsync
    (
    U
    V
    )
    (,
    BiFunction!(T, U, V) fn
    )
  2. CompletionStage!(V) thenCombineAsync(CompletionStage!(U) other, BiFunction!(T, U, V) fn, Executor executor)

Meta