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

multi: Reduce done goroutines. #3199

Merged
merged 1 commit into from
Oct 28, 2023

Conversation

davecgh
Copy link
Member

@davecgh davecgh commented Oct 24, 2023

This modifies the logic in several Run methods to block until the context is cancelled directly in the Run method instead of launching a separate goroutine for that purpose.

This approach is preferred since it provides the same functionality without additional long-running goroutines.

@davecgh davecgh added this to the 1.9.0 milestone Oct 24, 2023
Copy link

@ukane-philemon ukane-philemon left a comment

Choose a reason for hiding this comment

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

Nice work @davecgh, LGTM.

This modifies the logic in several Run methods to block until the
context is cancelled directly in the Run method instead of launching a
separate goroutine for that purpose.

This approach is preferred since it provides the same functionality
without additional long-running goroutines.
@davecgh davecgh force-pushed the multi_reduce_done_goroutines branch from af8311b to ae64e51 Compare October 25, 2023 14:58
@davecgh davecgh merged commit ae64e51 into decred:master Oct 28, 2023
2 checks passed
@davecgh davecgh deleted the multi_reduce_done_goroutines branch October 28, 2023 06:48
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.

4 participants