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

Please document how to handle errors #18

Open
joshtriplett opened this issue Sep 27, 2020 · 0 comments
Open

Please document how to handle errors #18

joshtriplett opened this issue Sep 27, 2020 · 0 comments

Comments

@joshtriplett
Copy link

With standard iterators, it's possible to call map with a function that returns a Result<T, E>, then collect into a Result<Vec<T>, E>. I'd like to do something similar with a ParallelStream, but it looks like the collect method only supports collecting into a Vec, not a Result.

Would you consider providing some documentation on how to handle errors that occur in one of the parallel function calls?

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

No branches or pull requests

1 participant