doOnAfterTerminate

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

Calls the action when the Maybe signals a terminal event: onSuccess, onComplete or onError. The action is called after the observer is called.