Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

取消一个请求后怎么恢复这个请求 #38

Open
Steven-Yung opened this issue Jun 24, 2017 · 1 comment
Open

取消一个请求后怎么恢复这个请求 #38

Steven-Yung opened this issue Jun 24, 2017 · 1 comment

Comments

@Steven-Yung
Copy link

当网络断开后,我取消掉所有网络请求,并把对应的identifier保存到一个数组中去,以便重新联网后再次请求数据,可问题是我如何恢复这个请求呢?

@kangzubin
Copy link
Owner

网络请求被取消后,是无法恢复的。你只能在取消时,把请求的 request 对象(取消的方法会返回)保存起来,再重新发起。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants