CompletionStage.thenAcceptAsync

Returns a new CompletionStage that, when this stage completes normally, is executed using this stage's default asynchronous execution facility, with this stage's result as the argument to the supplied 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

  1. CompletionStage!(void) thenAcceptAsync(Action action)
  2. CompletionStage!(void) thenAcceptAsync(Action action, Executor executor)
  3. CompletionStage!(void) thenAcceptAsync(Consumer!(T) action)
    interface CompletionStage(T)
    static if(!(is(T == void)))
    thenAcceptAsync
    (
    Consumer!(T) action
    )
  4. CompletionStage!(void) thenAcceptAsync(Consumer!(T) action, Executor executor)

Meta