【发布时间】:2020-12-31 17:55:07
【问题描述】:
在documentation 中,它显示了如何使用 android 客户端库执行 google cloud endpoints api 请求的示例:
ScoreCollection scores = service.scores().list().execute();
有没有办法取消这个请求?我不知道怎么做。
有时我想取消不再需要的长时间执行的请求。
我知道我可以将它放入自己的线程中并取消线程,但这实际上不会中断.execute() 方法。
【问题讨论】:
标签: android google-app-engine google-cloud-endpoints google-cloud-endpoints-v2