/** * Cancels a pending request. Note that if you are using preset ID's, this * will not work, since there is no way of knowing if there are other * requests pending (or have already returned) for the same data. */ public void cancel() { timer.cancel(); unload(); }
private void onSuccess(T data) { timer.cancel(); try { if (callback != null) { callback.onSuccess(data); } } finally { unload(); } }
private void onFailure(Throwable ex) { timer.cancel(); try { if (callback != null) { callback.onFailure(ex); } } finally { unload(); } }
/** * Cancels a pending request. Note that if you are using preset ID's, this * will not work, since there is no way of knowing if there are other * requests pending (or have already returned) for the same data. */ public void cancel() { timer.cancel(); unload(); }
/** * Cancels a pending request. Note that if you are using preset ID's, this * will not work, since there is no way of knowing if there are other * requests pending (or have already returned) for the same data. */ public void cancel() { timer.cancel(); unload(); }
private void onFailure(Throwable ex) { timer.cancel(); try { if (callback != null) { callback.onFailure(ex); } } finally { unload(); } }
private void onFailure(Throwable ex) { timer.cancel(); try { if (callback != null) { callback.onFailure(ex); } } finally { unload(); } }
private void onSuccess(T data) { timer.cancel(); try { if (callback != null) { callback.onSuccess(data); } } finally { unload(); } }
private void onSuccess(T data) { timer.cancel(); try { if (callback != null) { callback.onSuccess(data); } } finally { unload(); } }