retrofit 2, the documentation says you can cancel the request (call.cancel ()) why do you need to cancel the request? in what places it is used, you can example
Closed due to the fact that it is necessary to reformulate the question so that it was possible to give an objectively correct answer to the participants of HamSter , D-side , Denis , user194374, Denis Bubnov 27 Nov '16 at 9:38 .
The question gives rise to endless debates and discussions based not on knowledge, but on opinions. To get an answer, rephrase your question so that it can be given an unambiguously correct answer, or delete the question altogether. If the question can be reformulated according to the rules set out in the certificate , edit it .
|
1 answer
For example, you go to another activation, and the request is not completed and you have performed some actions related to this activation in the onResponse method. If you do not complete the request, then in the onResponse method you can have the application crash, because objects you work with may not exist.
|