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
tea/tea/tea.go
Line 307 in 8e3b425
func NewRequestWithContext(ctx context.Context, method, url string, body io.Reader) (*Request, error)
The text was updated successfully, but these errors were encountered:
应该是go的sdk包是生成的,没有做适配编写
Sorry, something went wrong.
主要的难点是对低版本兼容的要求,引入高版本的特性后会产生 break change。会在后续的大版本中支持 Context 的。
No branches or pull requests
tea/tea/tea.go
Line 307 in 8e3b425
现在golang的后端程序,都依赖context.Context管控协程生命周期,无论是redis、mysql、mongodb这些基础的driver还是其他三方的几乎所有的SDK都支持传递context.Context,不理解阿里云的SDK全部都没有传递context.Context。 实现上也很简单,http标准库有现成的方法。
func NewRequestWithContext(ctx context.Context, method, url string, body io.Reader) (*Request, error)
The text was updated successfully, but these errors were encountered: