Using Square's Retrofit Client, is it possible to cancel an in progress request? If so how?

前端 未结 7 2054
隐瞒了意图╮
隐瞒了意图╮ 2020-12-25 14:07

I\'m using Square\'s Retrofit Client to make short-lived json requests from an Android App. Is there a way to cancel a request? If so, how?

7条回答
  •  温柔的废话
    2020-12-25 15:07

    I might be a bit late, but I've possibly found a solution. I haven't been able to prevent a request from being executed, but if you're satisfied with the request being performed and not doing anything, you might check this question and answer, both made by me.

提交回复
热议问题