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

Proposal: expose MultiError #8

Merged
merged 1 commit into from
Oct 3, 2024
Merged

Proposal: expose MultiError #8

merged 1 commit into from
Oct 3, 2024

Commits on Oct 3, 2024

  1. Proposal: expose MultiError

    One of the great things about semgroup over x/sync/errgroup is that it
    actually waits all tasks to complete and returns an error.
    
    However, the returned error type doesn't let the caller to iterate over the
    errors (e.g. my use case requires me to truncate the list of errors).
    
    Therefore, introducing a backwards-compatible change that exports `MultiError`
    type, and guarantees that `Wait()` method returns an error of this type.
    ahmetb committed Oct 3, 2024
    Configuration menu
    Copy the full SHA
    9b7e513 View commit details
    Browse the repository at this point in the history