doOnBeforeSuccess

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

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

Please refer to the corresponding RxJava document.