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

[Feature Request] cacel、请求重试 #250

Open
Capyhw opened this issue Oct 29, 2024 · 0 comments
Open

[Feature Request] cacel、请求重试 #250

Capyhw opened this issue Oct 29, 2024 · 0 comments

Comments

@Capyhw
Copy link

Capyhw commented Oct 29, 2024

需求描述 Feature Description

cacel为什么不真正的取消请求呢,这对于一些post 接口很有帮助,比如每次post之前cacel,避免请求竟态,以及cacel是否能够停止正在请求重试的需求,这部分是否可以在文档中明确
请求重试过程中,报错会进到error吗,如果达到最大重试次数,我想做和重试过充中的报错不同的操作,如果都进onerror,我似乎没办法做到

建议的解决方案 Proposed Solution

1.希望cacel可以真正的取消请求
2.cacel可以停止重试或者加个stop的函数用于此
3.请求重试添加onfinally的回调,用于重试次数用完

其他信息 Other information

期待作者更新,感谢

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

1 participant