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

Limit the use of context.Background #7834

Closed
4 tasks
robert-zaremba opened this issue Nov 6, 2020 · 0 comments · Fixed by #8093
Closed
4 tasks

Limit the use of context.Background #7834

robert-zaremba opened this issue Nov 6, 2020 · 0 comments · Fixed by #8093
Assignees
Milestone

Comments

@robert-zaremba
Copy link
Collaborator

Summary

Use of context.Background() should be avoided. It breaks the clear transmission / connection between components.

Proposal

In many cases we can access a context from some of the function arguments. Otherwise we should think if a parent function has a context and passing it to a callee.


For Admin Use

  • Not duplicate issue
  • Appropriate labels applied
  • Appropriate contributors tagged
  • Contributor assigned/self-assigned
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

Successfully merging a pull request may close this issue.

2 participants