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
Canceling then executing request with same cache key ends up canceling new request #346
What ends up happening is that the request cancellation goes to that listener. Is there a recommended way of canceling a request and then immediately starting another request with the same key?
I have some requests happening in the background that need to be canceled and reissued when some of the settings change.
My code looks like this:
spiceManager.cancel(clazz1, key); ... spiceManager.execute(clazz1, key, listener)
What ends up happening is that the request cancellation goes to that listener. Is there a recommended way of canceling a request and then immediately starting another request with the same key?