CompletionStage.thenRunAsync

Returns a new CompletionStage that, when this stage completes normally, executes the given action using this stage's default asynchronous execution facility.

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

@param action the action to perform before completing the returned CompletionStage @return the new CompletionStage

  1. CompletionStage!(void) thenRunAsync(Runnable action)
    interface CompletionStage(T)
    thenRunAsync
    (
    Runnable action
    )
  2. CompletionStage!(void) thenRunAsync(Runnable action, Executor executor)

Meta