szymen
06/23/2017, 6:58 PMfun applyLoadingDialogs(mvpView: BaseMvpView?): CompletableTransformer? {
return CompletableTransformer {
it.doOnSubscribe { mvpView?.showLoadingDialog() }
.doAfterTerminate { mvpView?.hideAllDialogs() }
}
}
What is the simplest way to show loading dialog only when completable didn't emitted any terminate event for some period of time?