Reactor has a number of these methods, doOnSuccessOrError
and doAfterSuccessOrError
for example.
What is the material difference? The documentation doesn't clarify.
It is the matter of timing: "when the Mono terminates" and "after the Mono terminates". The doOnSuccessOrError
notifies the handler before the downstream and the doAfterSuccessOrError
notifies the handler after the downstream receives the respective terminal event.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With