CompletionStage.thenRun

Returns a new CompletionStage that, when this stage completes normally, executes the given action.

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

interface CompletionStage(T)
thenRun
(
Runnable action
)

Meta