Modify `createTaskGroup` so that an array of tasks can be passed in at initialization. ### TODO: - [ ] Ensure `createTaskGroup` can be initialized tasks. - [ ] Ensure `TaskGroup` can be cloned correctly. - [ ] Validate that tasks can be added dynamically afterward. - [ ] Maintain backward compatibility.
Modify
createTaskGroupso that an array of tasks can be passed in at initialization.TODO:
createTaskGroupcan be initialized tasks.TaskGroupcan be cloned correctly.