| 52 | /// a new batch of work then you should create a new task group. |
| 53 | class ARROW_EXPORT TaskGroup : public std::enable_shared_from_this<TaskGroup> { |
| 54 | public: |
| 55 | /// Add a Status-returning function to execute. Execution order is |
| 56 | /// undefined. The function may be executed immediately or later. |
| 57 | template <typename Function> |
| 58 | void Append(Function&& func) { |
| 59 | return AppendReal(std::forward<Function>(func)); |
| 60 | } |
| 61 | |
| 62 | /// Wait for execution of all tasks (and subgroups) to be finished, |
| 63 | /// or for at least one task (or subgroup) to error out. |