You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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?
The text was updated successfully, but these errors were encountered:
With standard iterators, it's possible to call
map
with a function that returns aResult<T, E>
, then collect into aResult<Vec<T>, E>
. I'd like to do something similar with aParallelStream
, but it looks like thecollect
method only supports collecting into aVec
, not aResult
.Would you consider providing some documentation on how to handle errors that occur in one of the parallel function calls?
The text was updated successfully, but these errors were encountered: