doOnBeforeComplete

fun <T> Maybe<T>.doOnBeforeComplete(action: () -> Unit): Maybe<T>

Calls the action with the emitted value when the Maybe signals onComplete. The action is called before the observer is called.

Please refer to the corresponding RxJava document.