0
有沒有辦法像Volley那樣在改造2中通過標籤取消特定的請求。 抽氣我們可以通過這樣取消請求。如何在改造2中通過標籤取消請求?
sRequestQueue = Volley.newRequestQueue(appContext);
public void enqueueRequest(Request req) {
sRequestQueue.add(req);
}
public void cancelTaggedRequests(String tag) {
sRequestQueue.cancelAll(tag);
}
在Retrofit 2.0中有沒有類似的方法?