doOnAfterDispose

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

Calls the shared action when the Disposable sent to the observer via onSubscribe is disposed. The action is called after the upstream is disposed.