async-rs / async-rs/parallel-stream

Please document how to handle errors

Open
#18 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Rust
Stars
96
Forks
13
PR merge metrics
No merged PRs in 30d

Description

With standard iterators, it's possible to call `map` with a function that returns a `Result`, then collect into a `Result, 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?

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.