What do you think about those ext function `fun &l...
# codereview
m
What do you think about those ext function
fun <R> Observable<R>.checkInternetConnection(): Observable<R> {
return if (NetworkUtils.isConnected) this else Observable.error(NoInternetException)
}
r
Personally, I handle network exceptions on a case-by-case basis instead of attempting to determine internet connection status as a whole.
👍 1
b
Or use a state machine that keeps the state and reacts to events. Also you are applying that to all observables?
👍 1