accept Either Success
fun <T> CompletableFuture<out T>.acceptEitherSuccess(other: CompletionStage<out T>, action: Consumer<in T>): CompletableFuture<Void>
Returns a new CompletableFuture that, when either given stage success, is executed with the corresponding result as argument to the supplied action.
This method is the same as CompletableFuture.acceptEither except for the either-success behavior(not either-complete).
Return
the new CompletableFuture
Parameters
action
the action to perform before completing the returned CompletableFuture