Details
-
New Feature
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
None
Description
We often see code like
if (use_threads) { return ::arrow::internal::ParallelFor(n, Func); } else { for (size_t i = 0; i < n; ++i) { RETURN_NOT_OK(Func(i)); } return Status::OK();
It might be nice to have a helper function to do this. It doesn't even need to be an inline template, it could be a precompiled function accepting std::function<Status(int)>
Attachments
Issue Links
- links to