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

doc: clarify WithCloseOnContextDone closes api.Module #2221

Merged
merged 1 commit into from
May 28, 2024
Merged

Conversation

mathetake
Copy link
Member

@mathetake mathetake commented May 28, 2024

This comes up in the discussion in the slack channel,
so this commit clarifies what exactly is closed on context cancelation.

cc @lthibault

Signed-off-by: Takeshi Yoneda <t.y.mathetake@gmail.com>
@@ -148,7 +148,7 @@ type RuntimeConfig interface {
// customSections := c.CustomSections()
WithCustomSections(bool) RuntimeConfig

// WithCloseOnContextDone ensures the executions of functions to be closed under one of the following circumstances:
// WithCloseOnContextDone ensures the executions of functions to be terminated under one of the following circumstances:
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

closed was ambiguous as to what exactly will be closed, so use the different word, and clarified below.

@mathetake
Copy link
Member Author

@lthibault thanks for the look!

@mathetake mathetake merged commit 0b543f7 into main May 28, 2024
62 of 63 checks passed
@mathetake mathetake deleted the clearif branch May 28, 2024 08:35
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 this pull request may close these issues.

2 participants