Hi!
First, thanks a lot for your lib, it does make life much easier :)
Second, here is the question:
1. Somewhere in my Activity i start a (potentially long-running) SpiceRequest by calling
SpiceManager.execute(...);
2. The activity gets stopped and/or destroyed
3. On resume i call
SpiceManager.getFromCache(...);
SpiceManager.addListenerIfPending(...);
Everything works as expected except the case when the request fails before the activity gets resumed or re-created. The only callback I get is OnRequestSuccess(...) with null result after calling getFromCache().
That seems correct as there has been no result to cache and return, but how do I find out that the request has failed?
I could do something like this:
class MyRequest implements SpiceRequest<X extends RequestResultWithError> {
public X loadDataFromNetwork() throws Exception {
}
the request would ALWAYS return a cacheable result, but is there any "built-in" functionality for that case?
Thanks you!
max77