Make pmap() handle exceptions instead of FATALing
Summary: This switches the output queue from `Output` to `Expected<Output, std::exception_wrapper>`, allowing exceptions to be produced by the predicate. Prior to this change, any exceptions would FATAL, taking down the whole process. Benchmarks appear unaffected. Memory use will be very similar: Small objects are already padded out to a cache line, so the increase in size will often be zero. Reviewed By: luciang Differential Revision: D14625210 fbshipit-source-id: 9bfa1197b7d2285bbc7e42e829beeb3525b3bd44
Showing
Please register or sign in to comment