In the documentation it shows this example of how to execute a google cloud endpoints api request using the android client lib:
ScoreCollection scores = service.scores().list().execute();
Is there a way to cancel this request? I can't figure out how.
Sometimes I want to cancel long executing requests that I don't need anymore.
I know I could put it into a Thread of its own and cancel the thread, but that won't actually interrupt the .execute()
method.
There are some ways to do it: