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

Consider redesigning AggregateError #32

Open
yoshuawuyts opened this issue Nov 8, 2022 · 0 comments
Open

Consider redesigning AggregateError #32

yoshuawuyts opened this issue Nov 8, 2022 · 0 comments
Labels
api design Relates to the user-facing API

Comments

@yoshuawuyts
Copy link
Owner

RaceOk returns a Result<T, AggregateError> where the error type matches the input type. Array of futures in -> array of futures out. etc.

Right now the API for it is rather clumsy; usually a thin wrapper to the underlying type + an Error impl so you can pass it through as-is. But what we really want is to expose something akin to Error::sources but not to iterate down, but to iterate over the siblings contained within the aggregate. Not entirely sure yet how to best approach this though.

@yoshuawuyts yoshuawuyts added enhancement New feature or request api design Relates to the user-facing API and removed enhancement New feature or request labels Nov 9, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api design Relates to the user-facing API
Projects
None yet
Development

No branches or pull requests

1 participant