doOnBeforeSuccess

fun <T> Single<T>.doOnBeforeSuccess(consumer: (T) -> Unit): Single<T>

Calls the consumer with the emitted value when the Single signals onSuccess. The consumer is called before the observer is called.

Please refer to the corresponding RxJava document.