We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
如何修改单个接口的超时时间呢? Post("url") { setClient { readTimeout(3, TimeUnit.MINUTES) writeTimeout(3, TimeUnit.MINUTES) } }.await() 这种改法是不是全局的超时时间都被修改了?
The text was updated successfully, but these errors were encountered:
你点开函数看下
Sorry, something went wrong.
奇怪了,那我默认没有去修改全局的配置,就一个接口改了超时时间。我把服务器断点了。 scopeDialog {} 过了10s,还是不会取消掉
Net只是基于OkHttp封装, 这种问题你去给Okhttp作者提isseus咨询吧
另外超时时间有三个值, 你只修改了2个值
No branches or pull requests
如何修改单个接口的超时时间呢?
Post("url") {
setClient {
readTimeout(3, TimeUnit.MINUTES)
writeTimeout(3, TimeUnit.MINUTES)
}
}.await()
这种改法是不是全局的超时时间都被修改了?
The text was updated successfully, but these errors were encountered: