Hey guys, I’m trying to add a retry mechanism to a...
# rx
s
Hey guys, I’m trying to add a retry mechanism to a web call (made via RxJava + Retrofit) and I’m not sure what I should use - retry/When/Until or takeUntil. My problem with retry is that as far as I can tell it retries only on error, but my case is that I might get a PENDING or IN_PROGRESS status in the response body (the response itself being successful). So I need to retry the call let’s say 5 times or until I get a COMPLETED in the response.body(). Can anyone help me with that?
g