doOnAfterFinally

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

Calls the action when one of the following events occur:

  • The Maybe signals a terminal event: onSuccess, onComplete or onError (the action is called after the observer is called).

  • The Disposable sent to the observer via onSubscribe is disposed (the action is called after the upstream is disposed).