-
Notifications
You must be signed in to change notification settings - Fork 75
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
use context.Context for timing out operations #362
Comments
Hello @jakecoffman, Would be interesting to see your fork/branch |
Here's an in-progress branch: master...jakecoffman:context I need to cancel the underlying HTTP request (by using Unfortunately by switching to |
It will be useful for using with tracing. vcdclient.Client.Http.Transport = &ochttp.Transport{
Base: vcdclient.Client.Http.Transport,
} Now, without context, i have separated traces. |
I have a fork here with the context applied if anyone would like to use it before it is available in this repo: https://github.com/wwt/go-vcloud-director |
Currently there's no way to set a timeout for an operation using this library. Generally this is done in Go using the context package: https://blog.golang.org/context
In a fork I've begun adding context everywhere that needs it. If you are interested in this change upstream let me know and I can put a PR up when it's done, otherwise I'll just use the fork since I need the timeouts.
The text was updated successfully, but these errors were encountered: