stephanenicolas / robospice

Repo of the Open Source Android library : RoboSpice. RoboSpice is a modular android library that makes writing asynchronous long running tasks easy. It is specialized in network requests, supports caching and offers REST requests out-of-the box using extension modules.
Apache License 2.0
2.95k stars 545 forks source link

Add possibility to retry with the same request on demand #417

Open romashko opened 9 years ago

romashko commented 9 years ago

I often need to retry request if it failed by pressing the button. But there is no any abstract solution for doing it (or I can not find it). Can you please add something for retrying requests?

Thanks

hoseinit commented 9 years ago

I need it to retry the same request until it's done ! Cache it if exits the program

softwaremaverick commented 9 years ago

Well, you'd have to decide how you want to do it, how often to keep retrying, what interval to do it at etc etc.

Personally I think the "keep trying until it's done" statement doesn't exist anywhere in reality as there must be some point when you realise it won't happen.

Either way, robospice will send it and tell you whether it works or not, you have to do the rest.

On 20 May 2015 11:26:13 BST, Hosein Hamedi notifications@github.com wrote:

I need it to retry the same request until it's done ! Cache it if exits the program


Reply to this email directly or view it on GitHub: https://github.com/stephanenicolas/robospice/issues/417#issuecomment-103836781

Sent from my Android device with K-9 Mail. Please excuse my brevity.