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

add sync/errgroup like functionality #28

Merged
merged 1 commit into from
Nov 20, 2019
Merged

add sync/errgroup like functionality #28

merged 1 commit into from
Nov 20, 2019

Conversation

nickethier
Copy link
Member

A common pattern used in Nomad is collecting errors from a set of goroutines and combining them with multierror. This was inspired by the sync/errgroup package, but instead of returning the first error, returns all errors combined with Append.

@hashicorp-cla
Copy link

hashicorp-cla commented Nov 11, 2019

CLA assistant check
All committers have signed the CLA.

Copy link
Contributor

@mitchellh mitchellh left a comment

Choose a reason for hiding this comment

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

I think it makes sense to put this functionality directly in go-multierror.

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.

None yet

3 participants