Skip to content
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

hope WithContext to set context #1516

Closed
crochee opened this issue Oct 26, 2021 · 1 comment
Closed

hope WithContext to set context #1516

crochee opened this issue Oct 26, 2021 · 1 comment

Comments

@crochee
Copy link

crochee commented Oct 26, 2021

code example:
// WithContext its context changed to ctx. The provided ctx must be non-nil.
func (c *Command) WithContext(ctx context.Context) {
c.ctx = ctx
}

@crochee crochee closed this as completed Oct 26, 2021
@crochee
Copy link
Author

crochee commented Oct 26, 2021

To solve this problem, I put forward a pr #1517

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant