I am reviewing a source code file and found in certain commit that we changed the usage of
.doOnSuccess(response -> logBodyAsJSON(response ));
Into
.doOnEach(response -> logBodyAsJSON(response ));
I cannot find a clear reason to do that.
So what is the difference between doOnSuccess and doOnEach, and in which use case i should use each of them?
