CompletionStage.runAfterEitherAsync

Returns a new CompletionStage that, when either this or the other given stage complete normally, executes the given action using the supplied executor.

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 executor the executor to use for asynchronous execution @return the new CompletionStage

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

Meta