-
Notifications
You must be signed in to change notification settings - Fork 131
Closed
Labels
Feature ✨Additional feature, big or smallAdditional feature, big or smallIntegrationIssues involve integration with other software and tools.Issues involve integration with other software and tools.User issue 🚨Issue opened by a userIssue opened by a usergo 🏃golang wrappergolang wrapper
Description
Describe the feature
All methods that cause network resources to be consumed should accept a context.Context to align with best practices for developing go applications.
Use Case
context.Context enables cooperative cancellation scoped metadata passing, which enables tracing integrations etc. Practically all go APIs and libraries that consume non-trivial resources (such as causing networking against a remote server) take a context as a parameter.
Proposed Solution
Add a context.Context as the first parameter to all *Command methods as well as others such as Transaction.Exec. Even if not fully used now, doing it now will avoid having to add a separate set of methods that accept it or releasing a v2 with a breaking change in the interface.
Other Information
No response
Acknowledgements
- I may be able to implement this feature request
- This feature might incur a breaking change
Client version used
pre-release
Environment details (OS name and version, etc.)
All
avifenesh
Metadata
Metadata
Assignees
Labels
Feature ✨Additional feature, big or smallAdditional feature, big or smallIntegrationIssues involve integration with other software and tools.Issues involve integration with other software and tools.User issue 🚨Issue opened by a userIssue opened by a usergo 🏃golang wrappergolang wrapper
Type
Projects
Status
Done