-
Notifications
You must be signed in to change notification settings - Fork 336
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
处理超时的最佳实践? #14
Comments
第二个问题是超时触发后,请求回来的时候拦截器还是会被调用。 |
超时我项目中没有应用过,要不 repo 给下,一起探寻下最佳实践~ |
看起来没什么问题了。。。 |
建议将 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
errorHandler
,那么我要在errorHandler
里怎么判断这是超时错误?我现在是根据error.message
里的timeout
,这样感觉不靠谱。Promise
还是会被resolve
。这个很奇怪,超时时应该已经reject
掉了,为什么还会再resolve
?The text was updated successfully, but these errors were encountered: