In this talk, I am explaining how RxJava retryWhen operator works, how to use it and a few pitfalls in a real usage.
Besides, I am suggesting screen transitions also can be handled with retryWhen in Android app - say, showing Login screen when receiving 401 Unauthorized and then resume the task after login succeeded.
Links:
- ReactiveX - Retry operator
http://reactivex.io/documentation/operators/retry.html
- ReactiveX - Repeat operator
http://reactivex.io/documentation/operators/repeat.html
- RxJava's repeatWhen and retryWhen, explained
http://blog.danlew.net/2016/01/25/rxjavas-repeatwhen-and-retrywhen-explained/
- Build Your Custom Observable/Operator
https://speakerdeck.com/hkurokawa/operator
- RxNearby
https://github.com/hkurokawa/RxNearby