doOnAfterTerminate

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

Calls the action when the Single signals a terminal event: either onSuccess or onError. The action is called after the observer is called.